fars_summarize_years: Load data from accident files and summarize by year and month

Description Usage Arguments Details Value Examples

Description

This is a function that loads data for a list of years and summarizes the data by year and month and returns the data in a tidy data format.

Usage

1

Arguments

years

A vector of strings or integers giving the years to retrieve

Details

If a accident file with standard naming convention is not in currect working, a "invalid year" warning is generated.

Value

a data_tbl with a row for each month of a year and a column with the number of accidents

Examples

1
2
3
4
5
## Not run: 
fars_summarize_years(c(1999,2000,2001)) 
fars_summarize_years(c("1999","2000","2001")) 

## End(Not run)

tcoopermont/fars documentation built on May 31, 2019, 7:29 a.m.