Description Usage Arguments Details Value Note Examples
View source: R/fars_functions.R
The function generates a tibble summarising the number of fatal injuries suffered in motor vehicle accidents recorded by the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS). The tibble shows the number of accidents grouped by month and year.
1 | fars_summarize_years(years)
|
years |
A vector (or matrix) used to represent the years of the data files to be imported. |
The function accepts a years
argument and converts the elements from the list generated from the
fars_read_years() function into a tibble which summarises the number of fatalities incurred in motor vehicle
accidents by month and year.
This function returns a tibble summarising the numbers of fatal accidents by month and year.
A package permitting the use of pipelines ( The dplyr and tidyr packages must be installed in the R environment but do not have to be attached.
1 2 | fars_summarize_years (2013)
fars_summarize_years (c(2013,2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.