Re: [R] Read SPSS v 18 .sav file

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Fri, 18 Jun 2010 10:44:41 -0400

On Jun 18, 2010, at 10:26 AM, Larry Hotchkiss wrote:

> Hi,
>
> I repeatedly get an error when trying to read an SPSS v. 18 .sav
> file into R.

No, you did not get an error message.
>
>> require(foreign)
> Loading required package: foreign
>> femaleSPSS.dat <- read.spss("female-04-02-2010.sav")
> Warning message:
> In read.spss("female-04-02-2010.sav") :
> female-04-02-2010.sav: Unrecognized record type 7, subtype 18
> encountered in system file
>>
>
> However, read.spss works for .sav files created in older versions of
> spss.
>
> I did just reinstall foreign to be sure I have the latest version.
> Does anyone know of an update that works?

What makes you think it didn't work? It was _only_ a warning message after all. Have you looked at femaleSPSS.dat in your workspace?

Had you done a search of the archives you would have found many such early discussions:

RSiteSearch("Unrecognized record type 7, subtype 18 encountered in system file")

-- 
David Winsemius, MD
West Hartford, CT

______________________________________________
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 Fri 18 Jun 2010 - 14:47: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 Fri 18 Jun 2010 - 15:50:32 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.

list of date sections of archive