Re: [Rd] Unexpected behavior in factor level ordering

2012-02-25 Thread Uwe Ligges
On 25.02.2012 19:16, Paul Johnson wrote: Hello, Everybody: This may not be a "bug", but for me it is an unexpected outcome. A factor variable's levels do not retain their ordering after the levels function is used. I supply an example in which a factor with values "BC" "AD" (in that order) is

[Rd] Unexpected behavior in factor level ordering

2012-02-25 Thread Paul Johnson
Hello, Everybody: This may not be a "bug", but for me it is an unexpected outcome. A factor variable's levels do not retain their ordering after the levels function is used. I supply an example in which a factor with values "BC" "AD" (in that order) is unintentionally re-alphabetized by the level