[R] Repeat dataframe

Kenneth Cabrera krcabrer at epm.net.co
Mon May 1 19:13:22 CEST 2006


As I said, a very more elegant solution!
Thank you!
On Mon, 01 May 2006 11:52:44 -0500, Prof Brian Ripley  
<ripley at stats.ox.ac.uk> wrote:

> my_df[rep(1:nrow(my_df), times=n), ]



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




More information about the R-help mailing list