[Rd] foreign(read.spss) in rw2000 and re2001beta

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sat Nov 6 17:13:10 CET 2004


Kjetil Brinchmann Halvorsen <kjetil at acelerate.com> writes:

> I made a test file test.sav with SPSS version 11.5.1
> containing only one numeric variable, with a value label
> for one value not occuring in the file. According to ?read.spss
> this should result in a factor, but it results in all NA. 

Er, what do you mean "all NA"? If the only factor level corresponds to
a value that isn't present, wouldn't you expect to get a factor with
one level and all values missing? What does str() say about the
resulting object?

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