fars_read_years: Read FARS files by year(s)

Description Usage Arguments Value Note Examples

Description

Read one or multiple year from files in the FARS format where FARS is US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.

Usage

1

Arguments

years

a vector (atomic or list) of integer(s) representing year in 4 digits format YYYY.

Value

a list of tibble. If a year is invalid return NULL for that year.

Note

The function output a warning in case of invalid year. If all years are invalid returns a list of NULL

Examples

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

TizVic/BuildingAnRPackage documentation built on May 4, 2019, 1:07 p.m.