make_filename: This function is to take a year as an input Then create and...

Description Usage Arguments Value Examples

Description

This function is to take a year as an input Then create and print a name of a file with format "accident_X.csv.bz2" where X is the input year. It will cause error if the file of the input year does not exist.

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(2013)

## End(Not run)

lbiagini75/fars_functions documentation built on May 20, 2019, 10:23 p.m.