Description Usage Arguments Details Value Examples
The function calculates the number of accidents by year and by month in the US. The accident files need to be in the working directory. The years can be passed as a list or a vector.
1 | fars_summarize_years(years)
|
years |
The years relating to the file names to be read in |
fars_summarize_years
will read in multiple Fatality Analysis Reporting
System data files based on the years provided and summarise the number of
observations by month and year.
fars_summarize_years
will return a wide-formatted data frame.
1 2 3 4 | ## Not run:
fars_summarize_years(2013:2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.