Re: [R] Deparsing part of a list argument

2007-10-26 Thread Steven McKinney
mbia Cancer Research Centre email: smckinney +at+ bccrc +dot+ ca tel: 604-675-8000 x7561 BCCRC Molecular Oncology 675 West 10th Ave, Floor 4 Vancouver B.C. V5Z 1L3 Canada -Original Message- From: [EMAIL PROTECTED] on behalf of Andrew Smith Sent: Thu 10/25/2007 2:38 PM To: [EM

Re: [R] Deparsing part of a list argument

2007-10-26 Thread Bert Gunter
essage- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabor Grothendieck Sent: Thursday, October 25, 2007 9:12 PM To: Andrew Smith Cc: [EMAIL PROTECTED] Subject: Re: [R] Deparsing part of a list argument Check out: http://tolstoy.newcastle.edu.au/R/e2/help/06/10/2242.html O

Re: [R] Deparsing part of a list argument

2007-10-25 Thread Gabor Grothendieck
Check out: http://tolstoy.newcastle.edu.au/R/e2/help/06/10/2242.html On 10/25/07, Andrew Smith <[EMAIL PROTECTED]> wrote: > Here's a simple example of the type of function I'm trying to write, > where the first argument is a list of functions: > > myfun <- function(funlist, vec){ > tmp <- lap

Re: [R] Deparsing part of a list argument

2007-10-25 Thread Duncan Murdoch
On 25/10/2007 5:38 PM, Andrew Smith wrote: > Here's a simple example of the type of function I'm trying to write, > where the first argument is a list of functions: > > myfun <- function(funlist, vec){ > tmp <- lapply(funlist, function(x)do.call(x, args = list(vec))) > names(tmp) <- name

[R] Deparsing part of a list argument

2007-10-25 Thread Andrew Smith
Here's a simple example of the type of function I'm trying to write, where the first argument is a list of functions: myfun <- function(funlist, vec){ tmp <- lapply(funlist, function(x)do.call(x, args = list(vec))) names(tmp) <- names(funlist) tmp } > myfun(list("Summation" = sum,