This function constructs a dataframe which shows the total number of fatal accidents during several years (input), by month and year
: a vector with calender years
The function uses the packages dplyr (bind_rows, group_by, summarize) and tidyr (spread) for combining, grouping and summarizing data, and representing this
a dataframe with a column 'MONTH' and columns
year for each (correctly processed) year. For not correctly processed years a warning is given
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.