Michael Kirschbaum schrieb:

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

Ah, it seems to be a common German problem. My solution is:


as.numeric(sub(",",".",a))

Thomas

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to