Re: [R] function application

2011-01-25 Thread Roy Shimizu
On Tue, Jan 25, 2011 at 5:12 PM, Phil Spector wrote: > ?do.call Erik, Phil, thanks! Roy __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and

Re: [R] function application

2011-01-25 Thread Phil Spector
?do.call Please provide a reproducible example if the help file is not sufficient. - Phil Spector Statistical Computing Facility Department of Statistics

Re: [R] function application

2011-01-25 Thread Erik Iverson
Suppose I have a function, like list, that takes a variable number of arguments, and I have those arguments in some vector x. How can execute the function with the *contents* of x as its arguments? I.e., I don't want list(x), but rather list(x[[1]], x[[2]], ..., x[[n]]), but I don't want to spel

[R] function application

2011-01-25 Thread Roy Shimizu
Suppose I have a function, like list, that takes a variable number of arguments, and I have those arguments in some vector x. How can execute the function with the *contents* of x as its arguments? I.e., I don't want list(x), but rather list(x[[1]], x[[2]], ..., x[[n]]), but I don't want to spell