fars_summarize_years: This function summarizes the number of incidents by month and...

Description Usage Arguments Value Note Examples

Description

This function summarizes the number of incidents by month and year in FARS data and returns a dataframe.

Usage

1

Arguments

years

A numerical vector representing years to read in the dataset(s)

Value

This function returns a dataframe summarizing the number of FARS incidents by month and year. The datframe includes a column for MONTH and a column for each year summarized.

Note

the function will throw an error if the year supplied is not found in the dataset(s) or is not a number

Examples

1
2
## Not run: fars_summarize_years(2013:2015)
## Not run: fars_summarize_years(not_a_number)

samthomasRLA/FARS documentation built on May 28, 2019, 5:40 p.m.