I have two data frames
df1:
DAT1 DAT3 DAT4 ...
1 this is this is
2 this is this is
3 this is this is
df2:
DAT1 DAT3 DAT4 ...
1 a comment a comment
2 a comment a comment
3 a comment a comment
I want to find a way to append the second dataframe columns (I know both the name and the position of the columns I need to append)to the first one and obtain an updated version of the first one that has:
df3:
DAT1 DAT3 DAT4 ...
1 this is a comment this is a comment
2 this is a comment this is a comment
3 this is a comment this is a comment
The thing is that the real dataframes have many rows and columns, so a for() loop would be really inefficient.