Description Usage Arguments Value See Also Examples
Given a vector of years, this function returns a table for numbers of observations within each month/year in FARS datasets.
1 | fars_summarize_years(years)
|
years |
a vector of integers, or objects that can be coerced into integers, representing specific years of FARS data. |
a datframe with the first column MONTH with integers 1 through 12, and a columm for each specified year. A worning is diplayed if a year does not return a valid source file.
1 2 3 | my_file <- system.file("extdata", "fars_data.zip", package = "fars")
unzip(my_file, junkpaths = TRUE)
fars_summarize_years(2013:2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.