Re: [R] How to modify the values of the parameters passing via ...

2012-08-31 Thread Bert Gunter
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

Re: [R] How to modify the values of the parameters passing via ...

2012-08-30 Thread Rui Barradas
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

[R] How to modify the values of the parameters passing via ...

2012-08-30 Thread Zhiqiu Hu
Dear Friends, Let's assume there are three parameters that were passed into fun1. In fun1, we need to modify one para but the remains need to be untouched. And then all parameters were passed into fun2. However, I have failed to achieve it. Please see the following code.