fars_summarize_years: Generates a table showing number of accidents by month and...

Description Usage Arguments Value Examples

Description

Function to generate a table showing numbers of accidents for a list of years from fars data.

Usage

1

Arguments

years

integer

Value

A table showing total number of accident by month and year.

Examples

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))

Moonglum8/farsfuncs documentation built on May 7, 2019, 4:59 p.m.