fars_read_years: Read compressed accident csv files of multiple years

Description Usage Arguments Value Examples

View source: R/fars_read_years.R

Description

This function takes a vector as input that should specify the years of the accident files. For every specified year, the filename is made, the file is read and a tibble is created with only the columns “MONTH“ and “year“. For each year that does not match an error is thrown. Furthermore the function can only read data that sits in the current working directory.

Usage

1

Arguments

years

A vector specifying the years of the accident csv files.

Value

A list of tibbles with the columns “MONTH“ and “year“.

Examples

1
2
3
4
5
6
## Not run: 
fars_read_years(2014)
fars_read_years("2014")
fars_read_years(c(2013,2014))

## End(Not run)

olivenbert/mypkg documentation built on May 25, 2019, 2:21 p.m.