fars_read_years: fars_read_years

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

Read data files according to the years of interest. dplyr needs to be imported for this function.

Usage

1

Arguments

years

years of interest, it could be either a single year of a vector of years

Value

a list of data, each element is a data_frame for the data for a given year

Note

If the data for specified years of interest are not present, a warning message will show those years as invalid year.

Examples

1
2
3
4
5
6
## Not run: 
data_2013 <- fars_read_years(2013)

data_2013to2015 <- fars_read_years(c(2013, 2014, 2015))

## End(Not run)

jye56/funcFARS documentation built on May 18, 2019, 8:12 p.m.