Description Usage Arguments Value Examples
View source: R/fars_functions.R
Function fars_summarize_years
provides number of accidents for each
month and year.
1 | fars_summarize_years(years)
|
years |
Four-digit year, as integer or as a string (i.e. 2001, "2001"). |
Data frame with columns:
a value between 1 and 12, 1 for January, 12 for December
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".
1 2 3 4 5 | ## Not run:
fars_summarize_years(2013)
fars_summarize_years("2013")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.