search for: statef

Displaying 2 results from an estimated 2 matches for "statef".

Did you mean: state
2012 Mar 30
4
Trying to understand factors
...uot;, "tas", "sa", "nt", "wa", "vic", "qld", "nsw", "nsw", "wa", "sa", "act", "nsw", "vic", "vic", "act") * statef <- factor(state) * statef [1] tas sa qld nsw nsw nt wa wa qld vic nsw vic qld qld sa tas sa nt wa [20] vic qld nsw nsw wa sa act nsw vic vic act Levels: act nsw nt qld sa tas vic wa With this, just visually, I know what the cateogries or Levels are. Nonetheless, two questions ari...
2010 Sep 25
1
Question on levels function and extracting the associated level number
..., > "sa", "nt", "wa", "vic", "qld", "nsw", "nsw", "wa", > "sa", "act", "nsw", "vic", "vic", "act") > > > statef <- factor(state) > > > levels(statef) > > [1] "act" "nsw" "nt" "qld" "sa" "tas" "vic" "wa" > > > I will now like to go through the entire vector "state", and generate the >...