make_filename: Name file

Description Usage Arguments Value Examples

View source: R/FARS_functions.R

Description

This function makes a file name. First, the year that is imputted will be converted to an integer, the value of which 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)

anamikapoyil/FARS documentation built on Dec. 23, 2021, 12:15 a.m.