[R] .por files

Manderscheid Katharina Katharina.Manderscheid at unilu.ch
Fri Dec 10 10:15:11 CET 2010


hi,

i have a spss portable file which i cannot open in R.
i tried 
library(Hmisc)
File.spss <- spss.get("File.por", use.value.labels=T)

and received:
Fehler in read.spss("File.por",  : 
  Datei »File.por« ist nicht in einem unterstützten SPSS-Format

(in engl.: error, not supported spss format)

then i tried

library(memisc)

File <- spss.portable.file("File.por")

and got:

WARNING: slash not found
ans = l832112+JGJJs6tiskYVsGfoVisDRTZekfjY462+52+7,+5+41KLD5+8+2+5+8+2+3K+5ZeXReXjUlRkFehler in readStringPorStream(stream) : 
  kann Speicherblock der Größe 3.3 GB nicht zuteilen

the file is 1023 kb

i can open the file in spss - so it is not damaged or anything.
any ideas?

> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: i486-pc-linux-gnu (32-bit)

locale:
 [1] LC_CTYPE=de_CH.UTF-8          LC_NUMERIC=C                 
 [3] LC_TIME=de_CH.UTF-8           LC_COLLATE=de_CH.UTF-8       
 [5] LC_MONETARY=de_CH.UTF-8       LC_MESSAGES=de_CH.UTF-8      
 [7] LC_PAPER=de_CH.UTF-8          LC_NAME=de_CH.UTF-8          
 [9] LC_ADDRESS=de_CH.UTF-8        LC_TELEPHONE=de_CH.UTF-8     
[11] LC_MEASUREMENT=de_CH.UTF-8    LC_IDENTIFICATION=de_CH.UTF-8

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

other attached packages:
 [1] memisc_0.95-31   Hmisc_3.8-3      Deducer_0.4-2    foreign_0.8-41  
 [5] effects_2.0-10   colorspace_1.0-1 lattice_0.19-13  multcomp_1.2-4  
 [9] mvtnorm_0.9-95   car_2.0-6        survival_2.36-2  nnet_7.3-1      
[13] MASS_7.3-5       ggplot2_0.8.8    proto_0.3-8      reshape_0.8.3   
[17] plyr_1.2.1       JGR_1.7-4        iplots_1.1-3     JavaGD_0.5-3    
[21] rJava_0.8-8     

loaded via a namespace (and not attached):
[1] cluster_1.13.2 tools_2.12.0  

kat



More information about the R-help mailing list