I have a data frame as given below:
Name Place a b c sum
xyz mno 1 2 3 6
pqr jkl 4 6 1 11
I would like a command in R script which would help me divide numerical values in column "a", "b" and "c" by value in corresponding "sum" column
hence, my output would be like:
Name Place a b c sum
xyz mno 1/6 2/6 3/6 6
pqr jkl 4/11 6/11 1/11 11