This function accepts an input and returns a filename that meets a proper templated format while including the unique date of the input string. Given the as.integer function within our function, the input must be numeric, otherwise an error will be thrown.
This function returns a string that will serve as a filename for the dataset in question. The main purpose of this function is to ensure the unique year is added to the filename.
1 2 3 4
## Not run: make_filename(2018) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.