I need to make a data frame from two data frame that their row number is different. I need to repeat rows of the smaller one as long as they have an equal number of rows. It is better to choose the rows to repeat randomly. for example: The first data frame:
# A B
#x 12 13
#y 15 16
The second data frame:
# C D
#z 19 20
#w 20 30
#r 10 13
#k 54 32
#f 34 10
And I want the result to be:
# A B C D
#1 12 13 19 20
#2 15 16 20 30
#3 15 16 10 13
#4 12 13 54 32
#5 12 13 34 10