make_filename: produces a string represetation of a valid fars file

Description Usage Arguments Details Value Note Examples

Description

make_filename produces a string containing a valid filename

Usage

1

Arguments

year

An integer, or a string value representing a year

Details

This function requires a year as input and returns a full FARS filename.

Value

a string that appends the input year to a filename to provide the full name of a valid fars file

Note

If the year cannot be coerced to integer, NA is used.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
make_filename(year = 2016)

## End(Not run)

## Not run: 
make_filename(year = 'two thousand sixteen') #  error

## End(Not run)

#' @export

Gregorypi/fars documentation built on May 23, 2019, 1:25 p.m.