Description Usage Arguments Value Examples
Function to generate a table showing numbers of accidents for a list of years from fars data.
1 | fars_summarize_years(years)
|
years |
integer |
A table showing total number of accident by month and year.
1 2 3 4 5 6 7 8 | library(dplyr)
library(readr)
library(tidyr)
f13path <- system.file("extdata", "accident_2013.csv.bz2", package = "farsfuncs")
f14path <- system.file("extdata", "accident_2014.csv.bz2", package = "farsfuncs")
f15path <- system.file("extdata", "accident_2015.csv.bz2", package = "farsfuncs")
file.copy(from=c(f13path,f14path,f15path),to=getwd())
fars_summarize_years(c(2013,2014,2015))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.