Re: [R] change in read.spss, package foreing?

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Sat 10 Sep 2005 - 01:36:22 EST

On Fri, 9 Sep 2005, Heinz Tuechler wrote:

> Dear All,
>
> it seems to me that the function read.spss of package foreign changed its
> behaviour regarding factors. I noted that in version 0.8-8 variables with
> value labels in SPSS were transformed in factors with the labels in
> alphabetic order.

No, they were in the order they were stored in the file

> In version 0.8-10 they seem to be ordered preserving the order
> corresponding to their numerical codes in SPSS.

They are now in the opposite order to their order in the file, which appears to be numerical order in SPSS (we can't be sure that this is always true since the file format is undocumented).

> However I could not find a description of this supposed change.

It's in the ChangeLog file in the foreign package.

         -thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley@u.washington.edu	University of Washington, Seattle

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Sep 10 01:42:46 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 16:44:02 EST