Description Usage Arguments Value Note Examples
This function accepts a vector or list of years years
, where the records from US
National Highway Traffic Safety Administration's Fatality Analysis Reporting System should
be available. It calculates a number of accidents per month and year and returns a tibble
(data.frame) with months in rows and years in columns.
1 | fars_summarize_years(years)
|
years |
A vector or list (numeric or integer) with the years of accident records. |
This function returns a tibble (data.frame) with number of accidents per month and year from the indicated years of records.
This function will give error if the files are not located in the working directory or
if the input year
is non-numeric or non-integer.
1 2 3 4 5 | ## Not run:
fars_summarize_years(2013)
fars_summarize_years(2013:2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.