make_filename: Create file name

Description Usage Arguments Details Value See Also Examples

View source: R/fars_functions.R

Description

Formats string file name to facilitate loading FARS files.

Usage

1

Arguments

year

An four-digit year to be assigned to file name. Function accepts both integers and strings as it converts the latter to an integer before assembling file name.

Details

Helper function used with other functions in this package, specifically fars_read_years, fars_map_state.

Value

Returns a string in FARS format with year embedded. The file name has .csv.bz2 file extensions.

See Also

fars_read is called as a helper function in fars_read_years, fars_map_state

Examples

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

## End(Not run)

connermcb/FARSfunctions documentation built on May 18, 2019, 8:11 p.m.