Skip to content

new to R and Zelig, problem loading data

2 messages · Hillard Pouncy, Brian Ripley

#
So, this is using package foreign, not Zelig, to read the file. 
Credit where credit is due ....

Look at the help page for read.spss:

reencode: logical: should character strings be re-encoded to the
           current locale.  The default, 'NA', means to do so in a UTF-8
           locale, only.  Alternatively character, specifying an
           encoding to assume.

So all you need to know is what CP28591 is.  It seems to be "latin1", 
so please try that.  (The next release of 'foreign' will know to try 
that, but we've never seen an actual SPSS file with it in.)
On Thu, 12 Feb 2009, Hillard Pouncy wrote: