[R] Passing function to tapply as a string

Yuri Volchik yuri.volchik at gmail.com
Mon Mar 10 16:46:17 CET 2008


Thanks,

match.fun is what i was looking for :-)






Or perhaps:

myfun <- function(fname, ...)match.fun(fname)(...)

On 07/03/2008, Richard.Cotton at hsl.gov.uk <Richard.Cotton at hsl.gov.uk> wrote:
> > Was wondering if it is possible to pass function name as a parameter


-- 
View this message in context: http://www.nabble.com/Passing-function-to-tapply-as-a-string-tp15891151p15950836.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list