Re: [R] Retrieving Factors with Levels Ordered

2011-01-01 Thread H. T. Reynolds
Thanks to one and all. I now have a better understanding of the situation. Original message >Date: Sat, 1 Jan 2011 11:03:59 -0500 >From: David Winsemius >Subject: Re: [R] Retrieving Factors with Levels Ordered >To: h...@udel.edu >Cc: r-help@r-project.org > > &

Re: [R] Retrieving Factors with Levels Ordered

2011-01-01 Thread David Winsemius
On Jan 1, 2011, at 12:41 AM, H. T. Reynolds wrote: Hello (and Happy New Year), When I create a factor with labels in the order I want, write the data as a text file, Why? What is the reason for this process. and then retrieve them, the factor levels are no longer in the proper order.

Re: [R] Retrieving Factors with Levels Ordered

2011-01-01 Thread Ben Bolker
Berwin A Turlach maths.uwa.edu.au> writes: > > G'day H.T. > > On Sat, 1 Jan 2011 00:41:10 -0500 (EST) > "H. T. Reynolds" udel.edu> wrote: > > > When I create a factor with labels in the order I want, write the > > data as a text file, and then retrieve them, the factor levels are no > > long

Re: [R] Retrieving Factors with Levels Ordered

2010-12-31 Thread Berwin A Turlach
G'day H.T. On Sat, 1 Jan 2011 00:41:10 -0500 (EST) "H. T. Reynolds" wrote: > When I create a factor with labels in the order I want, write the > data as a text file, and then retrieve them, the factor levels are no > longer in the proper order. Not surprisingly. :) [..big snip..] > testdf <-

[R] Retrieving Factors with Levels Ordered

2010-12-31 Thread H. T. Reynolds
Hello (and Happy New Year), When I create a factor with labels in the order I want, write the data as a text file, and then retrieve them, the factor levels are no longer in the proper order. Here is what I do (I tried many variations): # educ is a numeric vector with 1,001 observations. # The