fars_read_years: Get year and month columns from one or more FARS accident...

Description Usage Arguments Value References See Also Examples

Description

fars_read_years reads one or more years of FARS accident data to provide the year and MONTH columns. If a file is not found a warning is returned that the year is not valid (if the file does not contain a column named MONTH and a column named year the same warning is issued).

Usage

1

Arguments

years

vector of one or more years of files to read

Value

a list of one or more data frames (one for each year). Each data frame has two columns from each row of the files found:

References

for more information on FARS data see https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars

See Also

make_filename for the file nameing convention used

Examples

1
2
3
4
## Not run: 
my_df <- fars_read_years(2014:2016)

## End(Not run)

jrwalker-projects/farsfunctions documentation built on May 29, 2019, 1:50 a.m.