[R] Remove Indeterminate Level

Dimitris Rizopoulos dimitris.rizopoulos at med.kuleuven.ac.be
Thu Oct 7 16:43:52 CEST 2004

Hi Neil,

you could try

sex <- sex[,drop=TRUE]

I hope it helps.


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

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/396887
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.be/biostat/

----- Original Message ----- 
From: "Neil Leonard" <nleonard at tartarus.uwa.edu.au>
To: "r help" <r-help at stat.math.ethz.ch>
Sent: Thursday, October 07, 2004 4:13 PM
Subject: [R] Remove Indeterminate Level

> Hi,
> I have imported some data to R from stata and my factor variables 
> have an Indeterminate level which I don't really want. For example 
> the variable sex has the levels Male, Female and Indeterminate. 
> There are no 'Indeterminate' values in the data. Can somebody tell 
> me how to get rid of this level as it restricting my cox ph model.
> Thanks
> Neil
> ______________________________________________
> 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

More information about the R-help mailing list