Hi all,
I am trying to parse a vector for caliculating minimum in that vector the
vector having values like

1        Kontrolle
2          Placebo
3         125mg/kg
4         250mg/kg
5         500mg/kg
6        1000mg/kg
hear i tries for comverting it into numeric with using  "as.numaric()"
 function
but i got values like
5
6
2
3
4
1

it gives 1000mg/kg is the least one
but i have toget 125mg/kg as the minimum value
for that i have to remove all the strings and spetial charecters from that
for that i used      "parse()"      but i am not able to get the out put

can anyone suggest how I will solve it


thanks in advance



regards;
kiran

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to