Description Usage Arguments Value Note Examples
This function reads FARS report files for the list of years provided and produces a data frame tibble that summarizes data for each month of each year. Information for each year is consolidated in a separate column. Each row represents information for the corresponding month.
1 | fars_summarize_years(years)
|
years |
Vector or list containing years for which to read the data from the FARS reports |
data frame tibble in which each column represents a year and each row represent a month Values in this tibble represent number of observations for the corresponding month-year combination
fars_summarize_years
uses fars_read_years
to read the reports.
It expects to find the report files in the current working directory
1 2 3 4 5 | ## Not run:
smry <- fars_summarize_years(list(2013,2014))
smry <- fars_summarize_years(c(2014,2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.