make_filename: make_filename

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

The function creates a filename for a .csv.bz2 file based on the year argument in a form "accident_<year>.csv.bz2". It requires a numerical or integer input otherwise ends with an error.

Usage

1

Arguments

year

Numerical or integer input indicating a year of a dataset

Value

Returns a character string in a format "accident_<year>.csv.bz2" that can be used as a file name

Examples

1
2
3
4
## Not run: 
make_filename(2015)

## End(Not run)

smallikarjun/MyfarsPkg documentation built on May 23, 2019, 2:01 a.m.