In R you can use '...' for the function to receive an indeterminate number of arguments.
How do I know which arguments were used in the function?
Example, if I wanted to print the arguments used.
imprimeArgumentos <- function(...) {
args <- #pega os argumentos contidos em ´...´
print(args)
}
The function should work as follows.
imprimeArgumentos(x=3, z=NULL, y=3)
$x
[1] 3
$z
NULL
$y
[1] 3