Description Usage Arguments Value Note Examples
Reads data from FARS file for different years to create summarized cleaner data view
1 | fars_summarize_years(years)
|
years |
A vector with different year values |
A Data Frame representing number of fatal injuries spread across different years and corresponding months.
Data frame consists of MONTH
column with provided years
columns
where rows represents the count of fatal injuries occurring in different months
This function requires a vector with valid year representing values, otherwise it will result in error. Also, it will report warning if data is required for year whose file does not exists.
1 2 3 4 5 | ## Not run:
summarized_data <- fars_summarize_years(c(2013,2014,2015))
head(summarized_data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.