Skip to content
Prev 324744 / 398506 Next

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

Hello,

If in faux we ?force the return value, the bug is gone.


faux <- function(c) {
	f <- function (x) get(paste0(c,"gamma"))(x,k,scale=theta)
	force(f)
	f
}

Hope this helps,

Rui Barradas

Em 05-06-2013 07:13, Michael Weylandt escreveu: