[EMAIL PROTECTED] wrote:
Hi R-Helpers
Is there a way to access the parameters passed to a function all at
once? I want something like:
misc.params = list(...)
except such that it works with formal named parameters.
Does match.call() do what you want?
foo <- function(x,y,long.winded.arguemnt.name,...) {
args <- match.call()
args
}
foo(rnorm(10),rnorm(10),"some text")
foo(x = rnorm(10), y = rnorm(10), long.winded.arguemnt.name = "some text")
Cheers
Jason
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html