Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
The function fars_summarize_years
uses the fars_read_years
function toload the datasets and creates a list of each dataset containing
only the month and year per observation.
All this data is combined, via binding all rows together.
Next, the data is grouped by month and year that the number of observations
of each grouping can be measured.
In the last step, year and the number of observations per month and year
(=n)
are spread, meaning new columns are created for each element of
the year column and it's value is the number of n
in this month.
1 | fars_summarize_years(years)
|
years |
A list/vector containing the years for which data should be loaded and month + year are extracted |
Error occur, in the same cases as for fars_read_years
.
If there are no errors in this help function, everything works well.
A dataframe containing the number of each month and the number of observations for each month in each of the input years
1 | # fars_summarize_years(2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.