[Rd] foreign(read.spss) in rw2000 and re2001beta
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Sat Nov 6 19:03:27 CET 2004
Thomas Lumley <tlumley at 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 at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-devel
mailing list