Description Usage Arguments Details Value Examples
This function reads the FARS file for each of the years in the years
list argument,
retaining only the MONTH
and year
of the FARS reports in a list containing one data.frame
per year.
1 | fars_read_years(years)
|
years |
A list of 4-digit year numbers (YYYY) specifying the FARS files to be read. |
The function will produce a warning and skip the year if there is no FARS data file, or the data file cannot be read, for any of the given years.
The following functions are imported: dplr::mutate, dplr::select
.
This function returns a list
of data.frame
s, one per year,
in which each observation reflects the month and year of an accident report.
1 2 3 4 | #warns of an invalid year
fars_read_years(list(2015,2019))
fars_read_years(list(2013,2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.