Description Usage Arguments Value Examples
For each year input, this function first calls the make_filename function to generate the files name for the data on accidents in that year, then loads the generated filename into R using the fars_read function, and finally reduces the data to just month and years columns. If a file with a given year does not exist, it will return an error.
1 | fars_read_years(years)
|
years |
the years to find files for to load data into R. can be a vector or a single year |
a list of data frame tbls, for given years, each with month and year columns, or an error, if a file for the given year does not exist.
1 2 3 4 5 | ## Not run:
fars_read_years(years=c(2013,2014,2015))
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.