Here are my datasets:
df1:
HT AT HHAI HAAI HHGC HAGC
AS Ar 0.3 0.5 0.8 0.9
and so on.
I'm doing this in R.
df2:
HT AT HHAI HAAI HHGC HAGC
BS FS NA NA NA NA
and so on.
I want to copy values of HHAI, HAAI, HHGC, HAGC from df1 into same columns of df2 when:
df1.HT==df2.HT and df1.AT==df2.AT
df1 and df2 are large dataframes.
I'm very new to R. Don't know about much methods and all.
Please post the code here as I don't have much knowledge about R.
Thanks in advance.