'Assignment' pachage make an analysis, ploting and reading Fatality Analysis Reporting System (FARS) data from the National Highway Traffic Safety link.
FARS is a nationwide census, providing the American public yearly data, regarding faatal injuries suffered in motor vehicle traffic crashes.
library(Assignment) library(maps)
Data files located in:
list.files(system.file('extdata'), package = 'Assignment')
This function returns file name and path to the data files:
make_filename(2015)
Function to add info to the next 'fars_summarize_years'
fars_read_years(2013)
This function summarizes yearly accidents data, by month and year
plot(fars_summarize_years(2015)) fars_summarize_years(c(2015, 2014))
Displays a map indicating the accidents locations
```r fars_map_state(49, 2014)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.