Description Usage Arguments Value Note See Also Examples
View source: R/fars_functions.R
The function takes a vector of year numbers, reads the corresponding files
(using fars_read_years
) and counts the number of rows in aggregated
by month number.
Then it builds a table with one row for each month, and one column
for each file / year, and the values represent the total number of
observations.
1 | fars_summarize_years(years)
|
years |
a vector of years, as integers. |
A tibble with 12 rows and 1 column for each year.
The data files must be in the current working directory (see also
getwd
) to be found.
1 2 | aggregated <- fars_summarize_years(2013)
aggregated <- fars_summarize_years(c(2013, 2014, 2015))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.