Description Usage Arguments Details Value Examples
The function creates a standard filename form a year input.
1 | make_filename(year)
|
year |
An integer number to be passed to the filename. |
The function attempts to convert its argument to integer. If unsuccessful, the function throws an error message. If successful, the function passes the outcome to the sprintf function, which then prints a standard filename that also contains the year which was specified.
The function returns an object of class "character".
1 | make_filename(2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.