fars_summarize_years: Counts number of accidents per month and year

Description Usage Arguments Details Value Examples

Description

The function calculates the number of accidents by year and by month in the US. The accident files need to be in the working directory. The years can be passed as a list or a vector.

Usage

1

Arguments

years

The years relating to the file names to be read in

Details

fars_summarize_years will read in multiple Fatality Analysis Reporting System data files based on the years provided and summarise the number of observations by month and year.

Value

fars_summarize_years will return a wide-formatted data frame.

Examples

1
2
3
4
## Not run: 
fars_summarize_years(2013:2015)

## End(Not run)

xetaro/Farsdata-Project documentation built on May 27, 2019, 2:01 a.m.