Here is a small sample of my data, please consider I have more than 100 columns
I D M N Score
12 23 11 12 22
11 11 11 11 33
11 11 10 11 44
12 11 12 11 66
11 11 11 12 50
I want to subtract the Score from each column to get EXACTLY the following table:
Score1 I Score2 D Score3 M Score4 N
10 12 -1 23 12 11 10 12
22 11 22 11 0 11 22 11
33 11 33 11 1 10 33 11
54 12 55 11 -1 12 55 11
39 11 39 11 0 11 38 12
Is there a short R code to get this table?