fars_read_years: Read Month and year columns from data files of given years.

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function reads the data from files for a set of given years. For each year it reads the data, adds a "year" column and selects the two columns "MONTH" and "year".

Usage

1

Arguments

years

A numeric or character vector containing years for which, the data will be read.

Value

A list of tbl data frames with columns "MONTH" and "year" corresponding to the specified years. In case of wrong year specification an error will be thrown.

Examples

1
2
3
4
5
## Not run: 
fars_read_years(2013)
fars_read_years(2013:2014)

## End(Not run)

km20/farsP documentation built on May 22, 2019, 4:41 p.m.