[R] combining vectors to matrices or data frames
Jan Malte Wiener
jan.wiener at tuebingen.mpg.de
Wed May 15 16:27:30 CEST 2002
hi,
during a for(i in 1:xx]) loop I always newly calculate a vector
(e.g. tmp<-c(a,b,c,d,e) )
now i need that vector to be attached at the bootom of a matrix (or
data.frame).
e.g.
m<-matrix()
for(i in 1:5]){
#some calculations for a,b,c,d,e
a<- ... b<- ... c<- .. ....
tmp<-c(a,b,c,d,e)
??? now I need to attach this tmp to the matrix m ???
}
i couldn't get rbind or append to work properly
thanks for advice,
jan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list