Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
Receive a list of years (one or several years) and pass it to the function fars_read_years (). This function receives a set of data with the month and year columns. It uses several functions of dplyr to count the number of observations per month for each year.
1 | fars_summarize_years(years)
|
years |
One or more years, no error checking |
Uses fars_read_years(years)
A data frame of counts by month and year
1 2 3 4 5 6 | x <- setwd(system.file("extdata", package = "packagefars"))
# Summary with the tallies of car fatalities in 2013.
fars_summarize_years(2013)
# Summary with the tallies of car fatalities in 2013 and 2014.
fars_summarize_years(c(2013, 2014))
setwd(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.