Description Usage Arguments Value Note Examples
This function reads the data for multiple years provided as a list and returns a list of data frame tibbles Each tibble will have two columns (variables)
item MONTH item year These columns conorrespond to month and year of each measurement
1 | fars_read_years(years)
|
years |
Vector or list containing years for which to read the data from the FARS reports |
List of tibbles. Each tibble contains information about MONTH
and year
for each processed measurement
fars_read_years
uses make_filename
function to generate the list of files to process.
fars_read_years
expexts to find the report files in the current working directory
If one of the report files does not exist fars_read_years
will throw a warning.
1 2 3 4 | ## Not run:
mon_year <- 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.