[R] spss-data import
Peter Malewski
p.malewski at tu-bs.de
Tue Jun 12 21:35:57 CEST 2001
On Sat, Jun 09, 2001 at 10:51:49PM +0200, Bernd Weiss wrote:
> Hi Jon, Peter,
>
> thanks for your immediate help. The command
> allbus<-read.table("d:/tab.dat",sep="\t",dec=",")
> works fine -- ok, I just took a part of the whole dataset.
>
> BTW: I use SPSS 10.0... so read.spss won't work.
I'll have to correct me. I have just received a spss (I don't have an spss
version 10) file with
$FL2@(#) SPSS DATA FILE MS Windows Release 10.0.5 spssio32.dll Þ
at the begining and I was able to read it. But I swear that the former file
I got wasn't readable (even spss 6 ...).
And:
> xx <- read.spss("/mnt/hda1/MUTTER/SPSS/DATEN/FrBo1.SAV")
Process R segmentation fault at Tue Jun 12 21:22:42 2001
still persists. Anyway, I think the way with read.table is a reasonable
alternative. I guess that spss sometimes uses headers which are either
misspecified by spss or the read.spss codes don't get it right.
btw: the original pspp code says:
PSPP> get fil "/mnt/hda1/MUTTER/SPSS/DATEN/FrBo1.SAV"
>
error: corrupt system file: /mnt/hda1/MUTTER/SPSS/DATEN/FrBo1.SAV: position
34: Bad record type (22); the expected value was 2.
warning: The rest of this command has been discarded.
(read.spss has been taken from the pspp project)
Peter
--
P.Malewski, Limmerstr.47, 30451 Hannover, 0511-2135008
At work: http://www.MH-Hannover.de 0511 532 3194 / Fax: 0511 532 3190,
P.Malewski at tu-bs.de, peter.malewski at gmx.de, malewski.peter at mh-hannover.de.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list