make_filename: make_filename A function that returns the filename for the...

Description Usage Arguments Value Examples

View source: R/fars_function.R

Description

make_filename A function that returns the filename for the FARS database given a certain year. No need to be exported as it's mainly used inside the package

Usage

1

Arguments

year

A character or number (it will be coerced to integer in the function) containing the year

Value

returns a character with the correct file name to be searched in the FARS database. It will return an error if input is incorrect (ie '2015c')

Examples

1
2
3
4
5
## Not run: 
make_filename(2015)
make_filename('2015')

## End(Not run)

fdelzompo/BuildingRPackage documentation built on May 14, 2019, 9:42 a.m.