fars_read_years: Read multi-year Fatality Analysis Reporting System (FARS)...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This is a function that takes a vector of 4 digit, called years, as input and read FARS data into a list of data frames, one for each year. Each of the year input is converted to FARS filename via make_filename. Each data frame only contains the year and month. If FARS data file is not available any of the given year, the list entry for that year will be NULL

Usage

1

Arguments

years

An vector of 4 digit integer or string indicating the year

Value

This function returns a list of data frame with FARS data for the years.

Examples

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

sbudiman/brpextravis documentation built on May 17, 2019, 8:44 p.m.