hello could you give me a hint to convert data in factor type to numeric (float) ? regards -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
check the following: http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-do-I-convert-factors-to-numeric_003f Best, Dimitris Ahmet Temiz wrote:> hello > > could you give me a hint to convert data in factor type to numeric (float) ? > > regards > > -- > Open WebMail Project (http://openwebmail.org) > >-- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014
On 01/13/2010 10:47 AM, Ahmet Temiz wrote:> hello > > could you give me a hint to convert data in factor type to numeric (float) ? > > regards > > -- > Open WebMail Project (http://openwebmail.org) > >you could try as.numeric but without more details it is difficult to see if this will work. How did you end up with a factor (e.g. through import)? Stephan
I had exactly the same problem with trying to import another .csv file. Turns out that I was working on a german computer that instead of using a comma when I saved it as .csv used a semicolon. Just saved it as a normal excel file, put it on a mates computer and saved it as .csv Worked a treat.. -- View this message in context: http://r.789695.n4.nabble.com/convert-factor-data-to-numeric-tp1012855p2998685.html Sent from the R help mailing list archive at Nabble.com.