Description Usage Arguments Value Examples
The function is to take a list of years then use function fars_read_years to return a list of data frames with MONTH and year columns based on data in "accident_X.csv.bz2" files. Then it will return the data frame consists of total number of accidents for each month The files need to be in the working directory (Check function fars_read above!).
1 | fars_summarize_years(years)
|
years |
A list of years of integer or string that when the files were generated |
this function returns a data frame with total number of accidents for each month which is converted to a wide format
1 2 3 4 5 | ## Not run:
fars_read_years(2013:2015)
fars_read_years(2016) #example of warning (return error!)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.