fars_read_years: Read month data from a dataset

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function can be used to extract the MONTH column from the datasets provided in the package. The packages to which the function will be applied are selected via the the argument years.

Usage

1

Arguments

years

A list of integers representing years

Value

This function returns a list of dataframes. Each dataset contains two columns: the column MONTH, extracted from the datasets contained in the package, and the column year, containing the year to which the dataset refers. An error is thrown in case an invalid year is inputed.

Examples

1
2
3
4
## Not run: 
fars_read_year(list(2014,2015))

## End(Not run)

naelvis/fars documentation built on July 27, 2020, 7:30 a.m.