fars_read_years: fars_read_years(): Read accidents data with specific year

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function accepts a specific year and generates an accident filename of that year to be read. If the file doesn't exist, warning msg will be displayed. Otherwise, that file of accidents will be read and a list with only MONTH and year column will be returned

Usage

1

Arguments

years

An year of interest in which data to be read (2013-2015)

Value

A list of MONTH and year from the accidents dataset of given year

Examples

1
2
3
4
## Not run: 
fars_read_years(c(2013,2014,2015))

## End(Not run)

staedi/fars documentation built on Sept. 3, 2020, 8:45 a.m.