Re: [Rd] Capturing argument values

2007-01-03 Thread Seth Falcon
Ross Boylan <[EMAIL PROTECTED]> writes: > I would like to preserve the values of all the arguments to a function > in a results object. > foo <- function(a, b=1) > foo(x, 3) > > match.call() looks promising, but it records that a is x, while I want > the value of x (in the calling frame). Al

[Rd] Capturing argument values

2006-12-30 Thread Ross Boylan
I would like to preserve the values of all the arguments to a function in a results object. foo <- function(a, b=1) foo(x, 3) match.call() looks promising, but it records that a is x, while I want the value of x (in the calling frame). Also, if the invocation is foo(x), then match.call doesn