Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function reads the data from files for a set of given years. For each year it reads the data, adds a "year" column and selects the two columns "MONTH" and "year".
1 | fars_read_years(years)
|
years |
A numeric or character vector containing years for which, the data will be read. |
A list of tbl data frames with columns "MONTH" and "year" corresponding to the specified years. In case of wrong year specification an error will be thrown.
1 2 3 4 5 | ## Not run:
fars_read_years(2013)
fars_read_years(2013:2014)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.