make_filename: Generate the name of the file

Description Usage Arguments Details Examples

View source: R/fars_functions.R

Description

Generate the name of the file

Usage

1

Arguments

year

An integer or string indicating the year that generate the data file.

Details

This function uses the year (input) to generate the file name for the Fatality Analysis Reporting System (FARS) data file. It converts the year into an integer and then uses the sprintf() function to format the file name.

Examples

1
2
3
4
## Not run: 
make_filename(2014) #generates "accident_2014.csv.bz2"

## End(Not run)

TGaston/Rpd documentation built on Dec. 18, 2021, 4 p.m.