Default values for parameters
You can also supply default values for parameters in the Param()
statement. If no argument is given for a parameter that has a default, the default value is used for this parameter. Here's a simple example:
Using parameters is a powerful technique to make your functions applicable to more situations. This kind of flexibility is the key to write reusable functions.