make_filename: Create a filename

Description Usage Arguments Value Examples

Description

The function creates a filename for a .csv.bz2 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

Numerical or integer indicates a year of a dataset

Value

Return a character string in a format "accident_<year>.csv.bz2" that can be used as a filename

Examples

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

## End(Not run)

SimonFans/RP documentation built on May 8, 2019, 11:10 p.m.