Based on the user-selected years, the function summarises the number of accidents in the US on a monthly basis. The accident files need to be in the working directory.
A vector or list of years (numeric or integer) that will be searched in the data
Returns a tibble in a wide format (pivot) with months in rows and defined years in columns, using as values the number of accidents. Returns a warning for every input year that does not exist in the datasets.
1 2 3 4
## Not run: fars_summarize_years(2015:2016) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.