From S.Smith at manchester.ac.uk  Thu Apr  5 18:48:06 2007
From: S.Smith at manchester.ac.uk (Sam Smith)
Date: Thu, 5 Apr 2007 17:48:06 +0100 (BST)
Subject: [Rd] some SPSS 15 files wont open in R 2.4.0
Message-ID: <Pine.BSO.4.64.0704051747320.18758@recount.ccsr.ac.uk>


Trying to open some SPSS .sav files (saved with SPSS 15) gives the following:

 	read.spss('/data/big/unzipped_ukda/seh3767/3767SPSS_570D6A086C9A1B0636F13255F25A58C1/prgrp95.sav')
 	Error in 
read.spss("/data/big/unzipped_ukda/seh3767/3767SPSS_570D6A086C9A1B0636F13255F25A58C1/prgrp95.sav"): 
error reading system-file header
 	In addition: Warning message:
 	/data/big/unzipped_ukda/seh3767/3767SPSS_570D6A086C9A1B0636F13255F25A58C1/prgrp95.sav:
 	File-indicated character representation code (Unknown) is not ASCII

Some are fine in R, some are not.


The file opens in SPSS, and googling the error message gives
this mail about PSPP
         http://www.nabble.com/problem-loading-SPSS-15.0-save-files-t2726500.html
which includes a diff for the PSPP code which opens R files
and throws that exact error message back.

R documentation says that it uses some code based on PSPP,
I can't see it in the R distribution?. Does anyone with more
clue than I know whether the above is likely to fix it, and
where I should be looking for the code to change?


Alternatively, has anyone got any ideas on opening these files?





Thanks

Sam

-- 
s.smith at manchester.ac.uk ; www.ccsr.ac.uk



[Rd] some SPSS 15 files wont open in R 2.4.0
Sam Smith