make_filename: The function creates a filename for a .csv.bz2 file based on...

Description Usage Arguments Value Examples

Description

The function creates a filename for a .csv.bz2 file based on the year argument in a form "accident_<year>.csv.bz2". It requires a numerical or integer input otherwise ends with an error.

Usage

1

Arguments

year

the input year as integer or string that when the file was generated

Value

make_filename this function returns a character vector of file name "accident_X.csv.bz2" where X will be replaced by the year

Examples

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

## End(Not run)

OlehYashchuk/fita documentation built on June 4, 2019, 5:15 p.m.