fars_read_years: Read all the FARS data for specified years

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

This function should be supplied with a vector of 4-digit years. It will read the FARS data from all the relevant files for those years, and return one tibble per year, retaining the 'MONTH' and 'year' columns only.

Usage

1

Arguments

years

A vector of 4-digit numbers, each denoting a year. Must all be years for which you have a FARS data file, otherwise an error message will result.

Details

NB - In practice, this function is only likely to be called from within other functions. However, it is exported and documented here for the sake of completeness.

Value

A list of tibbles, one for each of the specified years, retaining the 'MONTH' and 'year' columns only.

Examples

1
fars_read_years(c(2013,2014))

AECunningham/FARS2 documentation built on Oct. 30, 2019, 4:08 a.m.