I have read how to divide the values in one column by those in another column in R. But I want to know how to divide the values in multiple columns by the values in a single column. Also my first column is composed of non-numerics. How do a write a script in R to do all this and avoid the non-numeric?
I want to divide HDL
and HDW
by SVL
in the .csv doc below
species SVL HDL HDW
PM 26.68 9.27 9.83
PM 23.46 8.41 8.59
PM 24.15 8.36 8.1
PM 23.09 8.91 8.79
Tioman 31.8 11.65 11.18
Tioman 29 10.88 10.66