[R] How to remove last 3 letters

Denis Kazakiewicz d.kazakiewicz at gmail.com
Wed Jul 13 11:05:06 CEST 2011


Hello to everybody
I have vector of drug dosage in string format
1.5 mg , 50 mg , 100 mg , 0.5 mg ...

The task is to remove last free symbols: ' mg'

Any suggestions are highly appreciated



More information about the R-help mailing list