fars_summarize_years - Creates a summary of all fatalities by year, for each
year input by the user.
A list or vector of years over which the summary is calculated.
This function relies on the
fars_read_years function to extract the variables
from the file associated with each year. It stacks these datasets together vertically, then
groups by year and calculates summaries, returning the result.
Returns a dataframe with the summaries of each year as separate columns.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.