make_filename: Create a file name

Description Usage Arguments Details Value Examples

Description

This function makes a file name by entering a year. You can specify the year by using the year argument.

Usage

1

Arguments

year

A character or integer vector specifying the year(s) (YYYY format).

Details

First, the function turns the year input into a integer, creating a numerical vector. The function then returns a character vector containing a formatted combination of text and variable values to specific a valid data file name for the desired year.

Value

This function returns a character string with the correct file name for the specified year.

Examples

1
2
make_filename(2013)
make_filename(c(2014, 2015))

jrwinget/Rfars documentation built on May 17, 2019, 12:11 a.m.