fars_summarize_years: FARS Data Summarizer

Description Usage Arguments Details Value Examples

Description

This function retreves the data for requested years and summarizes the data in a table for each month.It uses fars_read and make_filename and fars_read_years functions contained in this package. Function also uses dplyr and tidyr packages.

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 monthly number of incidents for each year.

Examples

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

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