powered by
Duplicate rows and insert them into the dataframe in order or at random
duplicate_rows(data, messiness = 0.1, shuffle = FALSE)
A dataframe with duplicated rows inserted
input dataframe
Percentage of rows to duplicate. Must be between 0 and 1. Default 0.1.
Insert duplicated data underneath original data or insert randomly
Philip Leftwich
duplicate_rows(mtcars, messiness = 0.1)
Run the code above in your browser using DataLab