[R] Problems changing to number from character
Carlos Morales
carlosmoralesdiego at yahoo.es
Mon Sep 15 19:26:40 CEST 2008
Hello all,
First of all, thanks for your examples to calculate the mode value. But now my problem is the next:
I have a factor and I'm trying to convert it to number with as.numeric(x) but when I see the number it's different, I mean if I have:
b<-1,042
d<-as.numeric(b)
then when I show d, it appears 432 and I want to work with 1,042 because then I want to calculate the median of three values
Thanks so much
Carlos
More information about the R-help
mailing list