[R] read.spss problem

2005-11-28 Thread Davia Cox
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.

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
[EMAIL PROTECTED]

One of the penalties for refusing to participate in politics is that  
you
end up being governed by your inferiors.
  -Plato

__
R-help@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


Re: [R] read.spss problem

2005-11-28 Thread Peter Dalgaard
Davia Cox [EMAIL PROTECTED] 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
 [EMAIL PROTECTED]
 
 One of the penalties for refusing to participate in politics is that  
 you
 end up being governed by your inferiors.
   -Plato
 
 __
 R-help@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
~~ - ([EMAIL PROTECTED])  FAX: (+45) 35327907

__
R-help@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