make_filename: make_filename

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

create a data file name given an input year

Usage

1

Arguments

year

param with the year information will be coerced to a integer

Details

The function ettempts to explicitly convert the year param to an integer. This may return NA resulting in "accident_NA.csv.bz2" as the returned file name as well as a warning message

#'

Value

string of the form "accident_yyyy.csv.bz2" where yyyy repersents the value passed in the "year" param

Examples

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

## End(Not run)

danlanguedoc/farsdata documentation built on May 17, 2019, 4 p.m.