From p.dalgaard at biostat.ku.dk  Sat Nov  6 19:03:27 2004
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Sat Nov  6 19:04:16 2004
Subject: [Rd] foreign(read.spss) in rw2000 and re2001beta
In-Reply-To: <Pine.A41.4.61b.0411060900180.264288@homer07.u.washington.edu>
References: <418CE35B.1000502@acelerate.com> <x24qk3dkh5.fsf@biostat.ku.dk>
	<Pine.A41.4.61b.0411060900180.264288@homer07.u.washington.edu>
Message-ID: <x2zn1udfdc.fsf@biostat.ku.dk>

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

> I have modified read.spss (but not committed the changes yet)  so that
> it does not create a factor when there are missing levels.

Hmm, could we handle this more elegantly? At the very least, we should
probably try to keep the labels as an attribute, so that you have the
option of doing something constructive with them afterwards. Perhaps
we need an entire new data class (say "labeled") and an as.factor()
method doing basically what happens now.

BTW, I take it that you mean "when there are values with no labels",
not "labels for values that are not present in data", right?

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