fars_summarize_years: Summarizing FARS data for specific year(s).

Description Usage Arguments Value Examples

Description

fars_summarize_years creates a summary table with counts of number of records for each month in a specified years.

Usage

1

Arguments

years

An integer/a list of integers to query one or more years from the collection of datafiles.

Value

An object of the tbl_df class which includes the month of a year in integer form as the first column and years in the requested order for following columns.

If any of the objects requested via input is not available as a year file or is not coercible to integer an "invalid year" error message returns.

Examples

1
2
3
4
 library(farspkg)
 fars_summarize_years("2015")
 fars_summarize_years(c(2013.0,2014))
 

umutkahramankaptan/farspkg documentation built on May 8, 2019, 1:24 p.m.