make_filename: Generate filename for motor vehicle crash year

Description Usage Arguments Value Examples

Description

This function (make_filename) creates a string containing a filename. The user input year is converted to an integer. The year is then incorporated into a string with prefix "accident_" and suffix ".csv.bz2".

Usage

1

Arguments

year

A string or integer giving the year to use in the filename

Value

This function returns a string containing the filename for motor vehicle crashes in a particular year. An warning message is returned if the input value cannot be coerced to an integer value.

Examples

1
2
3
4
5
6
## Not run: 
make_filename(2013)
make_filename("2013")
make_filename(year=2013)

## End(Not run)

drsmd23/Fars documentation built on May 15, 2019, 2:54 p.m.