Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function extracts data from a file of accident records for specified years and summarizes the specified year(s) of accident data in a table of monthly accident totals.
1 | fars_summarize_years(years)
|
years |
A value or vector/list of values indicating the year(s) of the data desired. Values of class integer or numeric may be passed safely to this function. Values of class character are also safe if coercible to integer, e.g. '2013'. Data only exist for the years 2013, 2014, & 2015. An error will be generated if a year other than one of these is passed to the function. |
This function returns a data.frame object whose first column is the sequence of integers from 1 to 12 (enumerating the 12 months of the year). Each subsequent column represents a summary of the desired years in terms of monthly totals.
1 2 3 4 | ## Not run: fars_summarize_years(2015)
fars_summarize_years(c('2013','2014'))
fars_summarize_years(list(2014,2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.