Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
read FARS data from file
1 | fars_read_years(years)
|
years |
, a list with all years to be displayed |
it is necessary to download the fars files before, this functions read the files from the working directory, if not a warning Throws a warning of "invalid year:" if a numeric other than what is available in data is provided as year.
a data.frame with the month and the total of accidents by year
1 2 3 4 | library(dplyr)
library(readr)
library(tidyr)
fars_read_years(c(2013))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.