make_filename: 'make_filename' - A function to create a FARS reporting...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

make_filename - A function to create a FARS reporting system datafile name for a given year. The function converts any input to integer before constructing the file name.

Usage

1

Arguments

year

The year to include in the file name. Can be numeric, integer or a characterized version of a numeric (e.g. "2003")

Value

Returns the full file name for the year specified as a character object.

Examples

1
2
3
4
5
## Not run: 
make_filename(2013)
first_file <- make_filename(2011)

## End(Not run)

12mre1/fars documentation built on Oct. 30, 2019, 4:02 a.m.