fars_read_years: Extract months and years

Description Usage Value Note Examples

Description

This function reads csv files for given years, extracts their months, and adds a column with the years.

Usage

1

Value

This function returns a tibble with the columns MONTH and year.

Note

This functions throws a warning if a file for the given year does not exist.

Examples

1
2
3
4
5
## Not run: 
setwd(system.file("extdata", package = "fars"))
fars_read_years(2013:2016)

## End(Not run)

la-sch/fars documentation built on May 20, 2019, 7:31 p.m.