fars_read_years: fars_read_years

Description Usage Arguments Value Note Examples

Description

This function uses the data file with fatal injuries in motor vehicle traffic crashes in the USA based on the input and selects all the months (via the MONTH field) contained in the data file with the year(s), which is/are used as input.

Usage

1

Arguments

years

An array of or single integer or character string denoting an array of years or a single year

Value

This function returns a list with repeating the month and per month the year

Note

This function will give a message "invalid year: <year>" when the input file based on the input cannot be processed

Examples

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

## End(Not run)

FerrieHeskes/Deel3-week2 documentation built on May 16, 2019, 10:04 a.m.