Description Usage Arguments Value Note Examples
This function takes a vector of years as input, and them select the year and month information contained in the files (like "accident_YYYYd.csv.bz2") saved in the working directory. The files will be the ones where the name includes one of the years provided, after appliying the "make_filename" function.
1 | fars_read_years(years)
|
years |
= is a vector containing integer values of years to be evaluated like c(2013,2014,2015) |
The fars_read_years returns a data frame with the month and years available in the data
A warning message will be given in the case that the file or the year and month in the file are not available.
1 2 3 4 5 6 | ## Not run:
fars_read_years(c(2013,2014,2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.