Simo Vundla wrote:
> Hi,
> I'm trying to import categorical data from SPSS to R using the script:
> xxx <-spss.get("xxx.por", use.value.labels=TRUE) but unfortunately am getting 
> an error message 'error reading portable-file dictionary'.
> 
> I have successfully imported data in the past. 
> 
> What could be the problem with this data?
> 
> Thanks
> 
> Simo

First of all, follow the posting guide.  Second, state which package you 
are using (in this case Hmisc).

spss.get in Hmisc uses read.spss in the foreign package.  See the 
documentation of read.spss for more details. You will find there:

'read.spss' reads a file stored by the SPSS 'save' and 'export'
  commands and returns a list.

read.spss does not claim to be able to read SPSS .por files.

Frank
-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to