make_filename: Generates a filename

Description Usage Arguments Value Examples

Description

Take _year_ value as input, converts it into an integer, and generates a character vector containing a formatted combination of text and provided variable values.

Usage

1

Arguments

year

Year (YYYY). This parameter isn't initialisied by default. Handles integers, floats as well as strings.

Value

This function returns a character vector to serve as a filename for an archived csv file.

Examples

1
2
3
4
5
6
## Not run: 
make_filename(2013)
make_filename("2013")
make_filename("2013.076")

## End(Not run)

debajyoti7/coursera_Rpackage_final documentation built on May 15, 2019, 1:53 a.m.