make_filename: Create "accident_<year>.csv.bz2" filename string

Description Usage Arguments Value Note Examples

Description

Coerces input to integer(s) and inserts into "accident_<year>.csv.bz2" at '<year>' returning the result.

Usage

1

Arguments

year

A numeric, integer or numeric string that will be coerced to an integer and inserted into the "accident_<year>.csv.bz2" string at <year>.

Value

Returns string(a) "accident_<year>.csv.bz2" with intergerised input at '<year>'

Note

If input cannot be coerced to integer(s) warning will result and NA(s) will be returned.

Examples

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

## End(Not run)

tgadamson-ds/fars documentation built on May 6, 2019, 6:59 p.m.