make_filename: Title: make_filename Description: This is a function that...

Description Usage Arguments Value Examples

Description

Title: make_filename Description: This is a function that takes an input in the form of a four digit value, a year, such as 2017. The function then converts the input to an integer and holds it in a variable called year It then takes the year variable and applies it to the string accident_ when the function is called for the year 2017. Usage: make_filename(year) Arguments: year. A string or integer providing the correct year to use in the file name

Usage

1

Arguments

year

Value: This function produces the filename a particular year. A warning message comes if the input cannot be converted to an integer.

Value

make_filename

Examples

1
2
3
4
## Not run: 
   make_filename(2017)

## End(Not run)

latsa001/Coursera-Assignment-Build-an-R-Package documentation built on May 20, 2019, 12:36 p.m.