make_filename: Create FARS data file

Description Usage Arguments Details Value Note Examples

Description

make_filename is used to create a FARS (Fatality Analysis Reporting System) character string filename.

Usage

1

Arguments

year

A character or integer variable of the year

Details

The function creates a character string with a filename of the year say 2006 in the format of accident_2006.csv.bz2

Value

This function returns a filename in the form of a character string.

Note

Error message: If the wrong file name is used then an error will be thrown

Examples

1
2
3
4
5
## Not run: 
make_filename("2016")
make_filename(2016)

## End(Not run)

cablegui/fars documentation built on May 13, 2019, 10:37 a.m.