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
>
>
&
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.
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
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 <-
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
5 matches
Mail list logo