[R] comma as a seperator to numeric

Mat matthias.weber at fnt.de
Wed Nov 28 09:03:36 CET 2012


Hello together,

i have a big problem, to convert a column in my data.frame to numeric.

I have:
61,13 in the column and write:
data$PT_DL<-as.numeric(as.character(data$PT_DL))

the result is NA, not a point seperated number.

How can i change the data to an as.numeric number?

Thank you for your help.

Mat



--
View this message in context: http://r.789695.n4.nabble.com/comma-as-a-seperator-to-numeric-tp4651090.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list