fars_read_years: fars_read_years function

Description Usage Arguments Value Note Examples

Description

This function takes a vector of years as input, and them select the year and month information contained in the files (like "accident_YYYYd.csv.bz2") saved in the working directory. The files will be the ones where the name includes one of the years provided, after appliying the "make_filename" function.

Usage

1

Arguments

years

= is a vector containing integer values of years to be evaluated like c(2013,2014,2015)

Value

The fars_read_years returns a data frame with the month and years available in the data

Note

A warning message will be given in the case that the file or the year and month in the file are not available.

Examples

1
2
3
4
5
6
## Not run: 

fars_read_years(c(2013,2014,2015))


## End(Not run)

aalvaradob/Prueba1 documentation built on May 9, 2019, 12:52 p.m.