make_filename: Construct File Path for a Specified Year

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

'make_filename()' is a helper function used by 'fars_read_years()' and 'fars_map_state()', which constructs paths to annual FARS data files that corresponds to its argument and follows a common naming pattern/convention.

Usage

1

Arguments

year

A four digit number representing a year in the format 'YYYY', numeric

Value

A character string representing a file path

Examples

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

## End(Not run)

johnxz/farsr documentation built on Dec. 21, 2021, 2:14 a.m.