fars_summarize_years: fars_summarize_years

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

generates 12-by-n monthly summary data for the n-years in question

Usage

1

Arguments

years

list of years to return the data

Details

The function binds all the rows returned in the yearly dataframes by fars_read_years and computes the monthly summaries and converts the summary into a 12 row monthly dataframe with one column per row

the dataframe may have less than 12 rows if the summary data doesn't exist for any particular row

Value

a dataframe that contain up to 12 rows of data with one column of summary data per input year

Examples

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

## End(Not run)

danlanguedoc/farsdata documentation built on May 17, 2019, 4 p.m.