fars_summarize_years: Summarize month data for multiple years

Description Usage Arguments Value Note Examples

Description

This is a function that takes a year or a list of years in numeric format and generates a summary table that describes the number of observations in FARS datafiles for each month in each year.

Usage

1

Arguments

years

a year in numeric format or a list of such years

Value

this function returns a table (tibble) with one column for each given year and up to twelve rows each representing a month.

Note

if the list that is provided as an argument contains a year for which the dataset is unavailable, it will produce an error.

Examples

1
2
3
4
## Not run: 
fars_summarize_years(2015)
fars_summarize_years(list(2013, 2014, 2015)) 
## End(Not run)

yuriygdv/farsfunctions documentation built on May 22, 2019, 2:47 p.m.