Description Usage Arguments Value Examples
This function reads the data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes from a file type "accident_YEAR.csv.bz2", creates a data frame with multiple columns and selects the specified Years and their correspondent Month columns. Then it creates a list with separate data frames for each year. Each data frame contains two columns: month and year.
1 | fars_read_years(years)
|
years |
A year or vector of years in numeric or integer format. |
List containing data frames for each year, each one with two columns: MONTH & Year. ERROR Null data frames & warnings if the introduced year(s) doesn't exist (file(s) doesn't exist).
1 2 | fars_read_years(2013:2015)
fars_read_years(2014)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.