Description Usage Arguments Details Value Examples
This function takes multiple year numbers, reads the FARS data sets for the given years from the current working directory and counts the number of observations per month for each year. The result is a tibble with a number of columns equal to the number of years given and 12 rows, one for each month. Each cell of the tibble contains the number of observations per month and year.
1 | fars_summarize_years(years)
|
years |
a vector of year numbers. |
This function uses fars_read
and make_filename
. These
functions may throw errors, for example, if files with names for the
requested FARS datasets do not exists in the current working directory.
a tibble with 12 rows and a number of columns equal to the number of years given.
1 2 3 4 | ## Not run:
y <- fars_summarize_years(c(2013, 2014))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.