Displaying 1 result from an estimated 1 matches for "24483c2db55e1a8493e7697f".
2000 May 02
3
Possible bug in factor (PR#531)
The expressions
> x<-factor(x)
and
> class(x)<-"factor"
behave differently when x is already an ordered factor. It may not be a
bug but it caught me out when I was trying to remove the "orderedness"
from a factor variable. The following R code illustrates the difference.
Is this difference between the 2 commands desirable?
> x<-1:3
> class(x)
NULL