Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
read FARS data from file and count the number of accidents group_by year and month
1 | fars_summarize_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 will be thrown Throws a warning of "invalid year:" if a numeric other than what is available is provided as years
a data.frame with the month and the total of accidents by year
1 2 3 4 | library(dplyr)
library(readr)
library(tidyr)
fars_summarize_years(c(2013))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.