fars_read_years: Read multiple report files for the list of years provided

Description Usage Arguments Value Note Examples

Description

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

Usage

1

Arguments

years

Vector or list containing years for which to read the data from the FARS reports

Value

List of tibbles. Each tibble contains information about MONTH and year for each processed measurement

Note

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.

Examples

1
2
3
4
## Not run: 
mon_year <- fars_read_years(c(2013,2014,2015))

## End(Not run)

vsemichev/farsr documentation built on May 3, 2019, 7:08 p.m.