[R] Problem reading a particular file with read.spss()

From: Chuck Cleland <ccleland_at_optonline.net>
Date: Tue, 29 Jul 2008 04:49:47 -0400


Hi All:

   I have a seemingly typical SPSS data file with 219 rows and 486 variables. When I attempt to read this file into R with read.spss() in the foreign package, I consistently get a "crash". This is the sequence of events:

> library(foreign)
> sessionInfo()

R version 2.7.1 Patched (2008-07-24 r46120) i386-pc-mingw32

locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] foreign_0.8-27

> read.spss("c:/chuck/mySPSSfile.sav")

"R for Windows GUI front-end has encountered a problem and needs to close. We are sorry for the inconvenience."

   It get a similar result trying to load the file under Rterm.exe. The file opens without any trouble in SPSS version 16.0.2 (April 10, 2008).   For anyone willing to investigate, I placed a copy of the SPSS file here:

http://www.chuckcleland.net/mySPSSfile.sav

   I would be grateful if someone could help to figure out why this file causes a problem.

thanks,

Chuck

-- 
Chuck Cleland, Ph.D.
NDRI, Inc. (www.ndri.org)
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894

______________________________________________
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 Tue 29 Jul 2008 - 08:53:01 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 Tue 29 Jul 2008 - 11:32:50 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