as.numeric(gsub(",",".",a))
Hope it helps!!
Best regards
Kenneth
On Fri, 12 Sep 2003 14:29:13 +0200, Michael Kirschbaum <[EMAIL PROTECTED]> 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]]
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
--
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help