Re: [R] Not able to convert data.frame to numeric properly

2014-04-09 Thread Bert Gunter
quot;, "3.0665", > "3.1155", "3.2027", "3.2123", "3.257", "3.4055", "6.0616", "6.0671", > "6.1166", "6.2053", "6.592", "6.6734", "7.005", "7.3159", "

Re: [R] Not able to convert data.frame to numeric properly

2014-04-09 Thread arun
t;3.257", "3.4055", "6.0616", "6.0671", "6.1166", "6.2053", "6.592", "6.6734", "7.005", "7.3159", "8.5777", "+AC0-20.3347"), class = "factor"), T = 2.9007, Tn = 3.2988), .Names = c(

Re: [R] Not able to convert data.frame to numeric properly

2014-04-08 Thread Frede Aakmann Tøgersen
ttp://www.vestas.com Company reg. name: Vestas Wind Systems A/S This e-mail is subject to our e-mail disclaimer statement. Please refer to www.vestas.com/legal/notice If you have received this e-mail in error please contact the sender. > -Original Message- > From: Sachinthaka Abeywar

Re: [R] Not able to convert data.frame to numeric properly

2014-04-08 Thread Sachinthaka Abeywardana
"7.005", "7.3159", "8.5777", "+AC0-20.3347"), class = "factor"), T = 2.9007, Tn = 3.2988), .Names = c("GHP", "GP", "T", "Tn"), row.names = 28L, class = "data.frame") On Wed, Apr 9, 2014 at 4:

Re: [R] Not able to convert data.frame to numeric properly

2014-04-08 Thread Frede Aakmann Tøgersen
- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Sachinthaka Abeywardana > Sent: 9. april 2014 08:11 > To: r-help@r-project.org > Subject: [R] Not able to convert data.frame to numeric properly > > I have the following: > > >

[R] Not able to convert data.frame to numeric properly

2014-04-08 Thread Sachinthaka Abeywardana
I have the following: >a #note that the 28 is a row.name GHP GP T Tn 28 2.2194 2.6561 2.9007 3.2988 >min(as.numeric(a)) 2.9007 >min(as.numeric(as.character(a))) 2.9007 >as.numeric(as.character(a)) #What's going on here??? [1] 33. 29. 2.9007 3.298