fars_read_years: fars_read_years

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

Reads files corresponding to the vector of years input into data frames There is an error message if the input invalid.

Usage

1

Arguments

years

A vector of numbers representing years need to be read

Value

This function returns a data frame about the number of accidents with months in rows, years in columns. Returns a invalid year warning if every input year that does not exist in the datasets.

Examples

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

## End(Not run)

vnmath/FRAS documentation built on May 18, 2020, 12:06 a.m.