fars_read_years: fars_read_years

Description Usage Arguments Value Examples

View source: R/packageproject.R

Description

This function takes in an integer vector and using the make_filename function creates file names. Then using the fars_read function it searches if those files exist. If the files exist and are the correct format then a dataframe is returned, otherwise a warning is returned. The returned dataframe has two variables (Month and year). If multiple years are provided, multiple dataframes are returned.

Usage

1

Arguments

years

Integer(s).

Value

A dataframe with two variables (Month and year) or an error message.

Examples

1
2
## Not run: fars_read_years(2013)
## Not run: fars_read_years(2013:2015)

hardisoneverett/testpackage documentation built on Nov. 5, 2019, 2:39 p.m.