fars_read_years: fars_read_years A funtion that create a list of dataset...

Description Usage Arguments Value Examples

View source: R/fars_function.R

Description

fars_read_years A funtion that create a list of dataset combining the make_filename fars_read functions.

Usage

1

Arguments

years

A character or numeric vector containing the years to import.

Value

returns a list of dataframes (more exactly a tbl_df from dplyr) with the information from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. If the filename with the reference year doesn't exists it returs a warning and a NULL element in the list.

Examples

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

## End(Not run)

fdelzompo/BuildingRPackage documentation built on May 14, 2019, 9:42 a.m.