[R] cbind()

livia yn19832 at msn.com
Wed Oct 31 13:06:28 CET 2007


Hello,

I would like to use the cbind() function to construct a matrix used in the
middle of a function as following

for (i in 1:1000) {
b[i] <- function(cbind(a[[1]][[i]],
a[[2]][[i]],a[[3]][[i]],...a[[67]][[i]]))
}


Is there an easy way of achieving this rather than "cbind" every column? 
-- 
View this message in context: http://www.nabble.com/cbind%28%29-tf4724534.html#a13507633
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list