[R] spss-data import

Bernd Weiss bernd.weiss at epost.de
Sat Jun 9 15:57:29 CEST 2001


Hello,

at the moment i am using spss as my favorite statistics 
package, but R seems an atractive alternative. Thanks to 
the R-Team for their great work! (I use R on my windows98 
laptop,P II and 64MB Ram).

I have a big(?) data set, containing more than 470 
variables and 3200 cases (size: 2.5MB). Whenever I use the 
command 'read.spss' (foreign-library), I got the the 
following warning massages: 
------------------
Warning messages: 
1: d:/s3000.sav: File contains duplicate label for value 
0.5 for variable V50. 
2: d:/s3000.sav: File contains duplicate label for value 1 
for variable V50. 
3: d:/s3000.sav: File contains duplicate label for value 
0.5 for variable V63. 
4: d:/s3000.sav: File contains duplicate label for value 1 
for variable V63. 
[...]
------------------
How do I interpret these warnings?

My next step was trying to save the spss-data as an ascii-
file (separated by tabs) and using the R command 
'read.table' -- R crashes. 

My third step was saving the spss-data as an ascii-file (in 
fixed format) and using again 'read.table'. I got:
------------------
Error in read.table("d:/fixed.dat", header = T) : 
        all rows must have the same length.
------------------

What went wrong? 

TIA

Bernd  


--
Bernd Weiß (bernd.weiss at epost.de)
PGP Key ID: 0x4117206F
PGP FP: 08B2 09CD 7192 526D 93FD  2070 53DB 7C4F 4117 206F
www.pgpi.org
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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