[R] Trying to build up functions with its names by means of lapply

Julio Sergio juliosergio at gmail.com
Wed Jun 5 23:11:05 CEST 2013


William Dunlap <wdunlap <at> tibco.com> writes:

> f1 <- function (c, nm = "gamma", ...)
> {
>     probFunc <- getFunction(paste0(c, nm))
>     force(list(...))
>     function(x) probFunc(x, ...)
> }
>
> Bill Dunlap
> Spotfire, TIBCO Software
> wdunlap tibco.com
> 

Thanks a lot William!, this really enhances my knowledge of the language.

 -Sergio.



More information about the R-help mailing list