[R] Concatenation

Wu Gong ghowoo at gmail.com
Fri May 21 16:10:06 CEST 2010


A dummy way is to resequence or rematrix


olddata <- data.frame(matrix(rnorm(200), nrow=40))
newdata <- data.frame(matrix(as.vector(t(olddata)), nrow=nrow(olddata)/10))
dim(olddata)
dim(newdata)


-----
A R learner.
-- 
View this message in context: http://r.789695.n4.nabble.com/Concatenation-tp2225569p2226200.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list