cc_staff
682
edits
(using arguments) |
|||
Line 158: | Line 158: | ||
The following example expects exactly two arguments. The first one should be a string which will be used for the variable "name" and the second one should be an integer for the variable "number". | The following example expects exactly two arguments. The first one should be a string which will be used for the variable "name" and the second one should be an integer for the variable "number". | ||
{{File | {{File | ||
|name=arguments_test.R | |name=arguments_test.R | ||
Line 178: | Line 177: | ||
print(paste("Processing with name:'", name, "' and number:'", number,"'", sep = '')) | print(paste("Processing with name:'", name, "' and number:'", number,"'", sep = '')) | ||
}} | }} | ||
This script can be used like this: | This script can be used like this: | ||
{{Command | {{Command | ||
|lang="R" | |lang="R" |