fars_read_years: Load MONTH and year into R

Description Usage Arguments Value Examples

Description

This function reads yearly and monthly data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System and returns an error if the selected years are not written corrected, found in the working directory files or if the working directory is not set properly

Usage

1

Arguments

years

An character vector, integers or a list containing years

Value

a list of data frames tbl containing MONTH and a newly created variable year for each year specified as parameter Returns NULL if the years can not be found in the files in the directory or if the directory is not properly set

Examples

1
2
3
4
## Not run: 
fars_read_years(2013)

## End(Not run)

ivalette/faRs documentation built on May 18, 2019, 7:12 a.m.