Description Usage Arguments Value Examples
View source: R/fars_functions3.R
fars_summarize_years
function allows to summarise the data by years
the function takes a list of vectors (years) which are passed in the third function above
then dataframes are binded to be summarised the number of cases per year
from a longitudinal format to wide format is converted by using the spead function
1 | fars_summarize_years(years)
|
years |
A vector of years to be read |
returns a dataframe with the number of cases summarised by year in a wide format
1 2 | fars_summarize_years(c(2013,2014))
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.