[R] Assistance with data import from Statistica
p.dalgaard at biostat.ku.dk
Sun Feb 1 13:02:29 CET 2004
Uwe Ligges <ligges at statistik.uni-dortmund.de> writes:
> Steve Burgess wrote:
> > I am a new R user attempting to convert files from Statistica to R. I
> > can export from Statistica to SPSS .por format, but not to the SPSS .sav
> > format. Is there a procedure for easily accomplishing this, which will
> > allow me to keep variable short and long labels (big surveys LOTS of
> > time to replace all this work).
> > Many thanks for sharing your time and knowledge.
> What about using a database? (or ASCII files if nothing else works...)
I suspect that was what Steve was trying to avoid...
According to our documentation, read.spss *should* be able to read
'read.spss' reads a file stored by the SPSS 'save' and 'export'
commands and returns a list.
(and EXPORT is the SPSS for creating portable files).
Whether this is actually true and whether it also applies to labels,
should be worth an experiment to find out... Our code is based on the
PSPP code by Ben Pfaff and that seems to have deciphered the file
format ( http://www.gnu.org/software/pspp/manual/pspp_toc.html )
pretty well, but we may not have lifted enough of the code for
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help