fars_summarize_years: Function 'fars_summarize_years' provides number of accidents...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

Function fars_summarize_years provides number of accidents for each month and year.

Usage

1

Arguments

years

Four-digit year, as integer or as a string (i.e. 2001, "2001").

Value

Data frame with columns:

MONTH

a value between 1 and 12, 1 for January, 12 for December

year

four-digit value for a year, column contains numbers of accidents for each month for the given year

If the requested year input is not present in available data, the function stops and return an error: "file 'filename_YEAR.csv.bz2' does not exist".

Examples

1
2
3
4
5
## Not run: 
fars_summarize_years(2013)
fars_summarize_years("2013")

## End(Not run)

kurowska/fars documentation built on May 20, 2019, 7:06 p.m.