Skip to content
Prev 25157 / 398506 Next

repeating a dataframe n times in the direction of the rows

Wolfram Fischer <wolfram at fischer-zim.ch> writes:
How about

x[rep(1:nrow(x),n),]

?