[R] read.spss problem
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Mon Nov 28 22:33:57 CET 2005
Davia Cox <coxdavia at msu.edu> writes:
> Hello,
> I am having trouble reading an spss file into R. I have reset my
> working directory to the folder where this file is stored. This is
> what I've typed into R and the error message I received:
>
> + getwd()
> [1] "/Users/daviacox/Graduate School/PLS 801"
> > read.spss("norwil.spss")
> Error in read.spss("norwil.spss") : error reading portable-file
> dictionary
> In addition: Warning message:
> Expected variable count record
>
> Please help, I don't have SPSS on my computer (I am re-analyzing some
> data for a statistics project) so I can't alter the file that way.
>
> Thanks again for your help.
Hmm, what kind of file is this? SPSS data files are generally called
.sav or .por. I wonder if you've got a "syntax file" on your hand,
i.e. a file containing program code. Is it readable as a text file?
> Davia
>
> Davia S. Cox
> Global Urban Studies Program
> Graduate Assistant/Doctoral Student
> 305 Berkey Hall
> East Lansing, MI 48825
> 517-353-5987 Office
> 517-353-6680 Fax
> coxdavia at msu.edu
>
> "One of the penalties for refusing to participate in politics is that
> you
> end up being governed by your inferiors."
> -Plato
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
--
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list