fars_read_years: Read the month and year data from the CSV file

Description Usage Arguments Value Examples

Description

This function uses a vector or list of years and returns a list of data frames containing the month and years for each accident in the corresponding CSV file. It will display a warning and return NULL if the year does not exist

Usage

1

Arguments

years

A list or vector containing the years to search

Value

Returns a list of data frames containing MONTH and year columns based on the "accident_<year>.csv.bz2 files Returns NULL if the year does not exist

Examples

1
2
3
4
5
6
## Not run: 
fars_read_years(c(2014, 2015, 2016))
fars_read_years(2014:2016)
fars_read_years(list(2014, 2015, 2016))

## End(Not run)

pvisser82/fars documentation built on May 29, 2019, 7:50 a.m.