search for: paramtmp

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

Did you mean: paramter
2003 Dec 09
1
Maybe some bug on sapply and cbind (PR#5628)
...ux Submission from: (NULL) (195.221.43.136) Hi!!! Is there some mistake? This is some part of one of my R programs. I created this function to show you the trouble!!! bugTest<-function() { paramnames <- c("mean","sd") param <- list(expression(1),expression(2)) paramtmp <- list(mean=0,sd=1) if(length(param)) { sapply(1:length(param),function(i) paramtmp[[paramnames[i]]]<<-param[[i]]) } paramtmp } If you run : > bugTest() $mean expression(1) $sd expression(2) Everything seems Ok!!! But, now, continue by running : > cbind(1,rep(2,1)) S...