I have df like this
Web R_Val B_Cost R_Total B_Total
A 20 2 20 1
B 30 3 10 2
C 40 1 30 1
I would like to multiply the column started with R_ together and B_ together and in real data there are many more. This is just dummy data, what could be the best solution to achieve this?
Web R_Val B_Cost R_Total B_Total R_New B_New
A 20 2 20 1
B 30 3 10 2
C 40 1 30 1