make_filename: Print "Make Filename"

Description Usage Arguments Value Examples

Description

This is a simple function that takes a year (provided by user with year argument), and returns a character string filename of the format "accident_[YEAR].csv.bz2". Errors could result from the year being given in a format that cannot be coerced to integer.

Usage

1

Arguments

year

A string or numeric year.

Value

This function returns a string of the file name for the given year.

Examples

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

## End(Not run)

osserman/farsSO documentation built on May 5, 2019, 3:54 p.m.