search for: dealwith_na

Displaying 1 result from an estimated 1 matches for "dealwith_na".

2012 Sep 13
1
list of funtions
...g I want to do is construct a list of functions where form is already set. So in pseudocode fs[[1]](...) <- fitMicroProtein(form=0,...) fs[[2]](...) <- fitMicroProtein(form=1,...) . . . I've tried that and it doesn't work. Here's my code: Newton <- function(metaf,par,niter,dealwith_NA,...) { fs <- list() for(i in 0:(length(par)-1)) { fs[[i+1]] <- function(par) return(metaf(par,form=i,...)) } . . . and the problem is with the variable 'i'. If I use the debugger, I find that it is specifically that: When it m...