fars_read_years: Generates a table of months and years from fars data files

Description Usage Arguments Details Value Examples

Description

Function to generate a table of months available for a list of years.

Usage

1

Arguments

years

integer

Details

Will produce errors if data file for a particular year is not available.

Value

A list of Months and Years.

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_read_years(c(2013,2014,2015))

sophiasagan/farsfunc2 documentation built on May 26, 2019, 5:44 p.m.