[R] write.table only writes the first 256 variables/columns

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri May 23 16:12:12 CEST 2003


Thomas Lumley <tlumley at u.washington.edu> writes:

>  The largest SPSS file I have lying around has only 212 columns, so I
> can't test the read.spss aspect of it.

I can:

> s95 <- as.data.frame(read.spss("~skm/public_html/fsvpage/sundby95.sav"))
> write.table(s95,"foo.txt")
> bar<-read.table("foo.txt",header=TRUE)
> dim(bar)
[1] 2742  323
> dim(s95)
[1] 2742  323

(all.equal() gives a few diffs but that's because factor levels are
in non-alphabetical order in s95)

-- 
   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 mailing list