fars_read_years: Generate data frame and select months and year

Description Usage Arguments Value

View source: R/fars-functions.R

Description

This is a function that generates a data frame for given years (from the FARS data file) using the functions make_filename and link{fars_read} and selects only the columns for month and year. An error message ("invalid year") is printed if an associated data set cannot be found.

Usage

1

Arguments

years

A numeric value denoting the year/ a list of years during which data should be gathered

Value

This function returns a data frame containing month and year for each data entry of the corresponding data set.


piotrp1/fars_tools documentation built on May 25, 2019, 7:14 a.m.