make_filename: Make Filename

Description Usage Arguments Value Examples

Description

This function take a year, converts it to an interger, and prints the new file name with the year appended to the end as a character vector (eg. "accident_1996.csv.bz2") A warning will occur if year is not supplied as a numeric value.

Usage

1

Arguments

year

Numeric year value.

Value

Returns a character vector containing a formatted combination of text (eg. "accident_") and numeric year variable supplied.

Examples

1
## Not run: make_filename(1996)

ctaber/buildingRpackages documentation built on June 22, 2019, 3:59 a.m.