fars_read_years: Extract month and year variables.

Description Usage Arguments Value Examples

Description

This function extract month and year data from each file and stores it in a tibble. It throws a warning for any year on which no data file is available.

Usage

1

Arguments

years

an integer or numeric vector containing years.

Value

a list of tibbles that include data for each of the input years.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# this one return a one element list
fars_records_2013 <- fars_read_years(2013)

# this one return a two elements list and one warning as 2012 is not available
fars_2012_2014 <- fars_read_years(2012:2014)

## End(Not run)

pabgamu/firstR documentation built on May 24, 2019, 5:57 p.m.