I am trying to combine two dataframes in an specific way and creat a new dataframe, and avoid for loops.
Assume a dataframe 1 like,
DF1
chan
1 A01
2 A02
3 A03
4 A04
and dataframe 2 is:
DF2
Len
1 10
2 11
3 12
I need to creat the third dataframe that look like (without using for loops):
DF3
chan Len
1 A01 10
2 A01 11
3 A01 12
1 A02 10
2 A02 11
3 A02 12
Appreciate answers in R and/or python. Thanks a lot in advance!