I have to multiply different entries of a variable by different number. Please suggest a way for it.
eg. ID subject Marks
1 Maths 52
1 science 45
1 history 85
2 Maths 45
2 science 49
2 history 85 & so on.
I have to multiply maths by 2 science by 3 & history by .5 for each entry. Only my data set is about 2000 long.
eg. ID subject Marks
1 Maths 52
1 science 45
1 history 85
2 Maths 45
2 science 49
2 history 85 & so on.
I have to multiply maths by 2 science by 3 & history by .5 for each entry. Only my data set is about 2000 long.
Comment