make_filename: Construct file name for a given year

Description Usage Arguments Details Value Examples

Description

make_filename constructs filename string of class character using argument year that is provided by user.

Usage

1

Arguments

year

integer year value

Details

This function constructs a string that is a filename of dataset that one would like to import into R session. By providing value for year, it will construct the name using sprintf function in an appropriate manner for dataset to be imported.

Value

filename string of class character

Examples

1
2
3
my_year <- 2013
my_filename <- make_filename(year = my_year)
my_filename

Struya/mtrostR documentation built on May 15, 2019, 4:18 a.m.