Description Usage Arguments Value Examples
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
1 | make_filename(year)
|
year |
Value: This function produces the filename a particular year. A warning message comes if the input cannot be converted to an integer. |
make_filename
1 2 3 4 | ## Not run:
make_filename(2017)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.