Displaying 1 result from an estimated 1 matches for "tp21822571p21837498".
2009 Feb 04
3
factor
I am looking into change the numeric order in the level of the factor
> x<-c("A","B","C")
> fx<-factor(x)
> fx
[1] A B C
Levels: A B C
> factor(x)
[1] A B C
Levels: A B C
> as.numeric(fx)
[1] 1 2 3
I want to change the order of the numeric into 3 corresponds to ?A? level, 2
corresponds to ?B? level and 1 corresponds to ?C? level
So when I