[R] read.spss, locale and encodings
Hans Ekbrand
hans.ekbrand at sociology.gu.se
Wed Apr 8 12:30:01 CEST 2009
I must be missing something obvious here:
According to the help page for read.spss, the reencode option is only
active when R is run under a UTF-8 locale.
read.spss can only import the SPSS file when run under a iso88591(5)
locale, under a UTF-8 locale I get:
Error in read.spss("wo.sav") : error reading system-file header
In addition: Warning message:
In read.spss("wo.sav") :
wo.sav: position 143: Variable name begins with invalid character
This is under Debian GNU/Linux, the stable release.
foreign is version 8.27
--
Hans Ekbrand (http://sociologi.cjb.net) <hans at sociologi.cjb.net>
GPG Fingerprint: 1408 C8D5 1E7D 4C9C C27E 014F 7C2C 872A 7050 614E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090408/9d17e289/attachment-0002.bin>
More information about the R-help
mailing list