fars_read_years: Read in a given year of fars data

Description Usage Arguments Details Value Examples

Description

This function inputs a list of years, reads in the data and outputs a list of data frames with the month and year

Usage

1

Arguments

years

A vector or list of years. Each value should be a character, integer or numeric

Details

Warning: The relevant fars files need to be in the working directory with the format: accident_YEAR.csv.bz2 where YEAR is a placeholder for a 4-digit year

Value

A list of data frames by year with the month and year

Examples

1
2
## Not run: data_2013 <- fars_read_years(2013)
## Not run: data_2013_to_2015 <- fars_read_years(c(2013,2014,2015))

kjsykora/faRs documentation built on May 19, 2019, 8:23 a.m.