farsr provides a set of functions to manipulate Fatality Analysis Reporting System (FARS) report files.
The package can be installed using
ghit::install_github("vsemichev/farsr")
- fars_read - read a FARS report file in CVS format
- make_filename - generate FARS report file name for a given year
- fars_read_years - read multiple FARS reports for a list of years
- fars_summarize_years - produce a monthly summary report for a list of years
- fars_map_state - draw a state map showing accident locations
df <- fars_read("../data/accident_2013.csv.bz2")
nm <- make_filename(2017)
mon_year <- fars_read_years(c(2013,2014,2015))
smry <- fars_summarize_years(list(2013,2014))
fars_map_state(6,2015)