[R] replicate data.frame n times

Martin Batholdy batholdy at googlemail.com
Tue Oct 11 21:55:29 CEST 2011


Hi,


is there a way to replicate a data.frame like you can replicate the entries of a vector (with the repeat-function)?

I want to do this:

x <- data.frame(x, x)
(where x is a data.frame).


but n times.



And it should be as cpu / memory efficient as possible, since n is pretty big in my case.



thanks for any suggestions!


More information about the R-help mailing list