make_filename: Name file

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function makes a file name. First, the inputted year will be converted to an integer. The value must be a simple year without quotes. Second, the year will be added to the middle of a string that represents the main pattern of the file name, in the placeholder for an integer.

Usage

1

Arguments

year

A number representing the desired year.

Value

This function returns a character vector with a combination of the main string and the year inputted.

Examples

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

## End(Not run)

marmello77/FARS documentation built on Jan. 1, 2021, 9:18 a.m.