df1
1 2 3 4 5 ...53
0 0 0 0 0
...
Columns in the above df sits within the range 8:60 (Column Position)
df2
Group.1 x
1 10
2 15
3 20
4 5
5 0
...53
There are 53 columns in df1 from the range 8:60 and there of 53 rows in df2
The idea is to match the column names in df1 so 1-53 with the 'Group.1' column in df2 and if there is a match then populate columns row in df1 with the corresponding value in the 'x' column in df2
Ouptut df1
1 2 3 4 5 ...53
10 15 20 5 0
How would I go about doing this?
Thanks,