Description Usage Arguments Value Examples
Title: fars_summarize_read Description: The data for the input is read using fars_read_years function The dataframes are then unioned using a bind_rows function from dplyr. Produced df is grouped by the year and MONTH. The total number of records is then summarized with summarize function The results are represented with months as rows and years as columns using the spread fnction from tidyr. An error message pops up if file does not exist Usage: fars_summarize_years(years) Arguments: years.
1 | fars_summarize_years(years)
|
years |
Value: A data frame with crashes for each year and month. An error message occurs if file or input does not exist. |
fars_summarize_years
1 2 3 4 | ## Not run:
fars_summarize_years(2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.