make_filename: Make a file name

Description Usage Arguments Value References Examples

Description

This function combines text with an input value to create a file name for the data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System

Usage

1

Arguments

year

An integer or a list of integers containing a year

Value

a character vector containing a formatted combination of text and variable values

References

https://www.nhtsa.gov/Data/Fatality-Analysis-Reporting-System-(FARS)

Examples

1
2
3
4
5
## Not run: 
make_filename(list(2013, 2014, 2015))
make_filename(2014:2015)

## End(Not run)

ivalette/faRs documentation built on May 18, 2019, 7:12 a.m.