Re: [R] Strange results converting string to number

2007-10-15 Thread Rolf Turner
On 16/10/2007, at 8:30 AM, pintinho wrote: > > Hi, > > I am getting a strange result while converting a string vector into > numeric > vector: > >> Datas[1] > [1] 37315 > >> as.numeric(Datas[1]) > [1] 2 > > Can anyone help me?? It would seem that ``Datas'' is a ***factor*** and NOT a ``string

[R] Strange results converting string to number

2007-10-15 Thread pintinho
Hi, I am getting a strange result while converting a string vector into numeric vector: > Datas[1] [1] 37315 > as.numeric(Datas[1]) [1] 2 Can anyone help me?? -- View this message in context: http://www.nabble.com/Strange-results-converting-string-to-number-tf4629811.html#a13220089 Sent from