From p.dalgaard at biostat.ku.dk  Sat Nov  6 17:13:10 2004
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Sat Nov  6 17:14:06 2004
Subject: [Rd] foreign(read.spss) in rw2000 and re2001beta
In-Reply-To: <418CE35B.1000502@acelerate.com>
References: <418CE35B.1000502@acelerate.com>
Message-ID: <x24qk3dkh5.fsf@biostat.ku.dk>

Kjetil Brinchmann Halvorsen <kjetil@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@biostat.ku.dk)             FAX: (+45) 35327907


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