The "fars_summarize_years" function reads yearly data of FARS datasets
and summarizes the number of accidents by month for each year specified. You can
customize the years of which you want to get more information (using the
years argument). The function uses the "fars_read_years" function to read
year-specific FARS data, then groups the observations by year and month, and
summarizes the number of accidents into a dataframe.
A number or vector of numbers describing the years to analyze
This function returns a dataframe describing the amount of accidents for the given years.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.