make_filename: Creates a FARS file name

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function returns a properly-formatted file name using the year as a function argument. An error will occur if the year parameter cannot be coerced into an integer.

Usage

1

Arguments

year

The year

Value

string in the form of "accident_YYYY.csv.bz2"

Examples

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

## End(Not run)

rparrish/FARSmap documentation built on May 28, 2019, 12:35 a.m.