Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function extracts month data from a file of accident records for specified years. These data are the months in which the accidents recorded in the data file occurred.
1 | fars_read_years(years)
|
years |
A value or vector/list of values indicating the year(s) of the data desired. Values of class integer or numeric may be passed safely to this function. Values of class character are also safe if coercible to integer, e.g. '2013'. Data only exist for the years 2013, 2014, & 2015. An error will be generated if a year other than one of these is passed to the function. |
This function returns a list of data.frame objects. The members of the returned list contain the month data corresponding to the year value(s) passed to the function.
1 2 3 4 | ## Not run: fars_read_years(2015)
fars_read_years(c('2013','2014'))
fars_read_years(list(2014,2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.