[R] convert a Character-string to a number
Ben Bolker
bolker at zoo.ufl.edu
Fri Sep 12 14:42:48 CEST 2003
?as.numeric
On Fri, 12 Sep 2003, Michael Kirschbaum wrote:
> Hi Everyone.
>
> I have a simple problem but don't know, how to get along.
>
> how can I convert the vector
>
> a<-c("0,01","1,00")
> in a vector
> b<-c(0.01,1.00)
>
> Thank you for suggestions
>
> M.Kirschbaum
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
--
620B Bartram Hall bolker at zoo.ufl.edu
Zoology Department, University of Florida http://www.zoo.ufl.edu/bolker
Box 118525 (ph) 352-392-5697
Gainesville, FL 32611-8525 (fax) 352-392-3704
More information about the R-help
mailing list