fars_read_years: Helper function to select months from a year list.

Description Usage Arguments Value

View source: R/fars_functions.R

Description

Since data is split in files one per year, a year column is added and the results combined into a single tibble. Checks for year validity. Used by fars_summarize_years and fars_map_state.

Usage

1

Arguments

years

A list or vector of values representing years.

Value

A tibble with one row per accident and columns year and MONTH reporting the accident date.


Halberdier/fars documentation built on March 22, 2020, 12:58 a.m.