It\'s easy to repeat a data.frame once,
mt2 <- rbind(mtcars, mtcars)
But what\'s an R-like way to do this generally? If I want 10 copies
dplyr-based solution (from here)
dplyr
library(dplyr) mtcars %>% slice(rep(1:n(), 2)) # 2 copies of data frame