fars_summarize_years: Summarize FARS accidents for given years

Description Usage Arguments Details Value Examples

Description

For given list of years, summarize the FARS accidents per month and year

Usage

1
fars_summarize_years(years = c("2013", "2014", "2015"))

Arguments

years

A list of years, format of each year must be corcible to a valid year by as.integer() function

Details

The function can malfunction in case the dataset for specified year is missing, or is given in wrong format

Value

This function returns a tibble with number of FARS accidents per month of each year This function does not produce duplicate records, e.g. c("2015", "2015") will produce only one summary

Examples

1
2
3
fars_summarize_years("2013")
fars_summarize_years(c(2013, 2014))
fars_summarize_years(c("2013", "2014", "2015"))

xzguqgsntdzq/Review_2 documentation built on May 13, 2019, 4:48 p.m.