Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
For a given year this function allows for calculating the number of observations per month for the US Fatality Analysis Reporting System data.
1 | fars_summarize_years(years)
|
years |
an R object. Must be an integer or a character vector of length 1 or more, containing any year |
The function will give a warning if provided with an incorrect year. Note that the function doesn't stop running if it found an error – only produces an erorr.
This function returns a tibble object containing a column with month exported from the data and a column with the number of observations per month. If provided with multiple years, the data frame will also contain multiple columns with numbers of observations – each for a year
1 2 | fars_summarize_years(2013)
fars_summarize_years(c(2013,2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.