The OP appears to be confused about argument lists and argument passing
(which has nothing to do with "imputed variables" btw). Here is an
explanation providing a more explicit explanation than RUI's post.
The formal arguments of fun1 are "x", "y",and "z".
The formal arguments of fun2 are "aa" and
Hello,
You could see what is fun1 receiving with this modification meant for
debugging:
fun1 <-function(x, y, z=10){
print(match.call())
x + y + z
}
Anyway, there is s standard way of dealing with argument '...' when one
needs to know what was passed.
Include dots <- list(...) at the
2 matches
Mail list logo