Bert Gunter <gunter.berton <at> gene.com> writes:
> Another equivalent way to do it?
>
> f2 <- function(c,nm = "gamma",...)
> {
> probFunc <- paste0(c,nm)
> more <- list(...)
> function(x)do.call(probFunc,c(x,more))
> }
>
> This avoids the explicit use of get() and force(), I believe, but are
> there problems here I'm missing?
>
Thanks Bert. Since I'm relatively new in using this language, a question
arises in my mind: why should the use of get() and force() be avoided? Is it
just for syntactic clarity or is there another computational reason?
Best regards,
-Sergio.
______________________________________________
[email protected] 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 provide commented, minimal, self-contained, reproducible code.