fars_read_years: fars_read_years

Description Usage Arguments Details Value Examples

Description

Uses the fars_read and make_filename functions to read a list of inputted years and applies the year function over each element of the vector, If year is valid calls fars_read function to read the csv file associated with each year Uses the dplyr function mutate to select month and year from data.

Usage

1

Arguments

years

A list of years such as c(2013,2014,2015) #@param year year function applied to each year in the list

Details

An error message is generated if an invalid year is entered in the supplied list

Value

tibbles n = n years

Examples

1
fars_read_years(c(2013,2014,2015))

johnmwaugh/FarsPackage documentation built on May 24, 2019, 4:06 a.m.