Displaying 1 result from an estimated 1 matches for "statefac".
Did you mean:
statefarm
2007 Nov 16
7
sorting factor levels by data frequency of levels
...ot;, "qld", "sa", "tas",
"sa", "nt", "wa", "vic", "qld", "nsw", "nsw", "wa",
"sa", "act", "nsw", "vic", "vic", "act")
>statefac<-factor(state)
now if i use levels function to print factor levels they are shown
sorted by alphabetical order. the output is shown below
>levels(statefac)
[1] "act" "nsw" "nt" "qld" "sa" "tas" "vic" "wa"
I WAN...