Re: [R] read.spss 'error reading system-file header'

2006-08-03 Thread Finn Sandø
Thank you for your answer. I did try this but got similar errors. I tried all the other spss-specific formats with same result. A way to get access to the data is: save in sas-xport format (though all labels are lost) then save in another sas-format and asking spss to also save value labels

Re: [R] read.spss 'error reading system-file header'

2006-08-03 Thread Finn Sandø
Thank you Michael I think you point to the real cause of the problem. I solved my own immediate problem by using StatTransfer to transfer from sav to sav. My real concern is that the read.spss() function will become obsolete. Most of the data I have received in the last year have had those

Re: [R] read.spss 'error reading system-file header'

2006-08-03 Thread Thomas Lumley
On Thu, 3 Aug 2006, Finn Sand? wrote: My real concern is that the read.spss() function will become obsolete. Most of the data I have received in the last year have had those problems (and increasingly so), now they have become so serious that the import process fails all together. Therefore I

Re: [R] read.spss 'error reading system-file header'

2006-08-02 Thread Michael Bibo
Finn Sandø fs at fs-analyse.dk writes: When I try to import an spss sav file with read.spss() I am getting the following error 'Error in read.spss(X:\\.sav) : error reading system-file header' and the import process is aborted. I have tried in v. 2.3.0 and 2.3.1 The sav-file loads

Re: [R] read.spss 'error reading system-file header'

2006-08-01 Thread Ulrich Keller
Question 2: Try saving the data as an SPSS portable file. I never had trouble reading these in R. Finn Sandø wrote: When I try to import an spss sav file with read.spss() I am getting the following error 'Error in read.spss(X:\\.sav) : error reading system-file header' and the import

Re: [R] read.spss Error reading system-file header

2004-10-26 Thread Björn Stollenwerk
Hi Jake, I had and still have got the same problem. There were two columns in the data frame which contain just missing values. When I deleted those the impord seemed to work, but there is still a warning message. Warning message: C:\test.sav: Unrecognized record type 7, subtype 13 encountered

RE: Re: [R] read.spss Error reading system-file header

2004-10-26 Thread Baize, Harold
Bj?rn Stollenwerk [EMAIL PROTECTED] wrote: I had and still have got the same problem. There were two columns in the data frame which contain just missing values. When I deleted those the impord seemed to work, but there is still a warning message. Warning message: C:\test.sav:

RE: Re: [R] read.spss Error reading system-file header

2004-10-26 Thread Prof Brian Ripley
On Tue, 26 Oct 2004, Baize, Harold wrote: Bj?rn Stollenwerk [EMAIL PROTECTED] wrote: I had and still have got the same problem. There were two columns in the data frame which contain just missing values. When I deleted those the impord seemed to work, but there is still a warning

Re: [R] read.spss Error reading system-file header

2003-11-04 Thread Thomas W Blackwell
Jake - The error message and warnign message shown below say something is wrong with this file's SPSS system-file header. If you are really able to open this one in SPSS, do so, change maybe a column name or row name or two, and save it again under a different file name. See if read.spss()

Re: [R] read.spss Error reading system-file header

2003-11-04 Thread Thomas W Blackwell
Jake - Very puzzling that a freshly-written copy of the file gives the same problem. As to your second question, my recollection is that read.spss() will be in package 'foreign'. The absolute reference is the source code itself, and this is often quite readable, whether it's commented or not.

RE: [R] read.spss Error reading system-file header

2003-11-04 Thread Gabor Grothendieck
David Baird has created a free data conversion utility called dataload. See http://www.vsn-intl.com/genstat/downloads/dataload.htm It can translate SPSS files into other formats including several that are readable by R (including csv and rda). I don't use SPSS myself but I have used

Re: [R] read.spss Error reading system-file header

2003-11-04 Thread Thomas Lumley
On Tue, 4 Nov 2003, Jacob Wegelin wrote: Is there any documentation on what kind of SPSS file can and cannot be read by read.spss? Alternatively, how can one modify or clean an SPSS file to make it readable by read.spss? What properties must a *.sav file before read.spss can read it? I

Re: [R] read.spss Error reading system-file header

2003-11-04 Thread Jacob Wegelin
Thank you for your responses. Here's the workaround. In SPSS, I saved the file EXvideo.sav as Excel. Still in SPSS, I read in this Excel file, and saved it under a new name, EXvideo-SPSStoExceltoSPSS.sav, as an SPSS file. This file I was able to read into R with no problem, using read.spss.

RE: [R] read.spss Error reading system-file header

2003-11-04 Thread Gabor Grothendieck
] Subject: RE: [R] read.spss Error reading system-file header David Baird has created a free data conversion utility called dataload. See http://www.vsn-intl.com/genstat/downloads/dataload.htm It can translate SPSS files into other formats including several that are readable by R (including csv