fars_summarize_years: Summarizes the observations found in FARS data

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

Reads the data from CSV files for each of the given years and then summarizes the observations as counts for each month and years. The output shows month(rows) & year(cols) wise counts

Usage

1

Arguments

years

Integer Vector representing one or more years. Incorrect values for years may result in coercion error whereas for years for which data was not found will show error for invalid year

Value

This function returns a data.frame having observations for each months spreaded over the years given. In case year is not found then the caller is been intimidated

Examples

1
2
3
fars::fars_summarize_years(2013)
fars::fars_summarize_years(c(2013,2015))
fars::fars_summarize_years(2013:2015)

akbarpunjwani/msdr-rpkgexample documentation built on Feb. 22, 2021, 3:59 a.m.