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 <dwinsem...@comcast.net> >Subject: Re: [R] Retrieving Factors with Levels Ordered >To: h...@udel.edu >Cc: r-help@r-project.org > > >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. > >Two further ideas to those offered by Turlach and Bolker: >You can name them with leading digits that ascend in the desired order >or >I have seen described ( but not found a fully worked example despite >what I thought was an adequate search) the use of an as() method >which in this instance might apply as.factor with your own level >specification while reading with colClasses. > >
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.