make_filename: Make filename

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function creates a filename for a .csv.bz2 file based on the year argument in a form "accident_<year>.csv.bz2". Function will end with an error if input is not a an integer value.

Usage

1

Arguments

year

Integer value indicating a year of a data set.

Value

string in a format "accident_<year>.csv.bz2"

Examples

1
2
3
4
## Not run: 
makefilename(2017)

## End(Not run)

ThoDuyNguyen/fars documentation built on May 20, 2019, 3:34 p.m.