[R] Error in read.spss() for .por files

From: Anders Schwartz Corr <corr_at_fas.harvard.edu>
Date: Sun, 9 Dec 2007 22:43:13 -0500 (EST)


Hi, There are two unanswered reports of this error (below) in read.spss() when used with a .por file. I had the same problem and in order to successfully read the file into R I downloaded spss, saved the data as .dat tab-delimited, and then used read.table(). The point is that spss successfully read the same .por data file (the Polity II data freely available from ICPSR) that R couldn't read. So, I assume this is a bug in R.

> politydata<-read.spss("polityii.por")
Error in read.spss("polityii.por") : error reading portable-file dictionary
In addition: Warning message:
Expected variable count record in: read.spss("polityii.por")
>



R-help_at_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. Received on Mon 10 Dec 2007 - 03:51:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 10 Dec 2007 - 05:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.