Description Usage Arguments Value Examples
View source: R/fars_functions.R
The function fars_read_years
reads data from the US National
Highway Traffic Safety Administration's Fatality Analysis Reporting System
and extracts accidents per month and year.
1 | fars_read_years(years)
|
years |
A vector of years. |
A list of data frames. Each data frame corresponds to one year and
consits of columns for month and year as well as rows for accidents.
If type of years
is not correct or if its elements are invalid,
an error message is generated and nothing is returned.
1 2 | setwd(system.file("extdata", package = "fars"))
fars_read_years(2013:2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.