fars_read_years: Read multiple FARS files

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function creates a tbl_df object from multiple files using a list of years as the function argument. Prints the resulting tbl_df a side-effect. An error message Invalid Year: <value> is returned if the provided year is not between 2013 and 2015.

Usage

1

Arguments

years

A vector of years.

Value

A tbl_df with the month and year for each of the years that were specified in the function argument. Prints the tbl_df as a side-effect.

Examples

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

## End(Not run)

rparrish/FARSmap documentation built on May 28, 2019, 12:35 a.m.