Description Usage Arguments Value Examples
View source: R/fars_functions.R
This is a function that takes a vector of 4 digit, called years
,
as input, read FARS data into a list of data frames, one for each year
via fars_read_years
. These multi-year FARS data will be summarized
by counting the number of rows that exist for each year and month.
The summarized data frame will have months as rows, and years as columns, while
the row counts as the intersection of rows and columns.
1 | fars_summarize_years(years)
|
years |
An vector of 4 digit integer or string indicating the year |
This function returns a data frame with FARS data for summarized by years and months.
1 2 | ## Not run: fars_summarize_years(c(2014,2015))
## Not run: fars_summarize_years((2013:2015))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.