[R] hello

Dimitris Rizopoulos dimitris.rizopoulos at med.kuleuven.be
Thu Apr 19 16:26:13 CEST 2007


look at R FAQ 7.10

http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-do-I-convert-factors-to-numeric_003f

I hope it helps.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm



----- Original Message ----- 
From: "elyakhlifi mustapha" <elyakhlifi_mustapha at yahoo.fr>
To: <R-help at stat.math.ethz.ch>
Sent: Thursday, April 19, 2007 3:29 PM
Subject: [R] hello


> ok how can I do to cancel le function factor for the moment ican't 
> do this and I'm stuck with my problem for exemple
>
>     Id_Rep Id_Geno Val_O Id_TrT1
> 1       1   64238   145       2
> 2       1   64238     1       1
> 3       1   64238     2       1
> 4       1   64238     1       1
> 5       1   64238     1       1
> 6       1   64238     2       1
> 7       1   64238     1       1
> 8       2   64238     1       1
> 9       2   64238     2       1
> 10      2   64238     1       1
> 11      2   64238     1       1
> 12      2   64238     1       1
> 13      2   64238     1       1
> 14      1   64239   144       2
> 15      1   64239     1       1
>
>  but when I write like below I have still levels and I'd like to 
> disappear levels
>
>
>   don[1:15,]$Val_O
> [1] 145 1   2   1   1   2   1   1   2   1   1   1   1   144 1
> 127 Levels: 1 10 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 11 
> 11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 12 12.1 12.2 12.3 12.4 
> 12.5 12.6 12.7 ... 9.9
>
>
>
> ---------------------------------
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



More information about the R-help mailing list