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

Heinz Tuechler tuechler at gmx.at
Fri Sep 9 01:58:29 CEST 2005


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.
In version 0.8-10 they seem to be ordered preserving the order
corresponding to their numerical codes in SPSS.
However I could not find a description of this supposed change. Since the
different behaviour seems to depend on the installed version of the
foreign-package I don't know how to give a reproducible example.
It also affects spss.get of the Hmisc-package, which is not surprising.
I prefer the new behaviour and would like to know, if it will persist in
future versions.

Comments?

Heinz Tüchler




More information about the R-help mailing list