Skip to content
Prev 284080 / 398502 Next

replicate rows

Hi>
matrix
Replicate index.
x<-matrix(1:4, 2,2)
x[rep(1:2, 20),]

Regards
Petr
http://www.R-project.org/posting-guide.html