fars_read_years: fars_read_years

Description Usage Arguments Value Note Examples

View source: R/fars_function.R

Description

This function selects the month and year from each record in the files associated to the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, given one or more years.

Usage

1

Arguments

years

A numeric vector giving the year or years from which to select.

Value

This function returns a list with data frames of class tibble with the months and years from each record of the file.

Note

There will be errors if the year is absent or the if the year is referenced to a non-existing object in the environment. There are warnings when the year is invalid (no existing filename with that year).

Examples

1
fars_read_years(c(2013,2014))

kevortiz10/fars_package documentation built on Dec. 21, 2021, 6:36 a.m.