fars_read_years: Read multiple FARS files.

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function receives a vector of years and creates a tbl_df object that contains the FARS data for each year. An error message will appear if for any given year there is no file name.

Usage

1

Arguments

years

A vector containing a set of years.

Value

Return a list. For each year introduced it creates the appropriate format for reading and loading FARS files, adds the "year" column and selects only the "month and year" columns. If data do not exist for a given year, send a warning and return NULL value.

Examples

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

## End(Not run)

Arcturio/mipqueteria documentation built on May 20, 2019, 3:33 p.m.