fars_read_years: The function is to take a list of years and returns a list of...

Description Usage Arguments Value Examples

Description

The function is to take a list of years and returns a list of data frames with MONTH and year columns based on data in "accident_X.csv.bz2" files. The files need to be in the working directory (Check function fars_read above!).

Usage

1

Arguments

years

A list of years of integer or string that when the files were generated

Value

Returns a list of tibbles (data frames) with the same number of rows as the data in "accident_<year>.csv.bz2" files and two columns - MONTH and year. Returns NULL and a warning if the file does not exist.

Examples

1
2
3
4
5
6
## Not run: 
   fars_read_years(2013:2015)
   fars_read_years(list(2013, 2014))
   fars_read_years(2016) #example of warning (return error!)

## End(Not run)

OlehYashchuk/fita documentation built on June 4, 2019, 5:15 p.m.