View source: R/fars_functions.R
fars_read_years | R Documentation |
read FARS data from file
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
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.