fars_summarize_years: Monthwise and yearwise summary of FARS data

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function provide the summary of count for each month of an year for the years passed as argument.

Usage

1

Arguments

years

a character string or numeric or a list of character stings/ numeric specifying year/ years

Value

a table summarizing the FARS data monthwise for the each inputted year.

Note

The function throws a warning of invalid year if the file with year in the name is not found. Also must be in the current working directory

Examples

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

ybbsharma/sofars2 documentation built on May 4, 2019, 2:31 p.m.