fars_read_years: FARS Data Reader

Description Usage Arguments Details Value Examples

Description

This function retrieves the reported incidents from requested data files and creates a table that provides month and year information the incident has occured. It also uses fars_read and make_filename functions contained in this package, and imports dplyr package.

Usage

1

Arguments

years

this parameter takes a vector of numbers that represent the desired years as an input.

Details

This function expects to get the years as numbers in YYYY format and have the relevant .csv.bz2 files in the working directory. The function sends a warning message for each year file it wasn't able to locate.

Value

the function returns a table that provides month and year of each reported incident.

Examples

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

LapsedPacifistROU/FARSAssignment documentation built on May 7, 2019, 3:12 p.m.