search for: pl2odydwzv64v3u3

Displaying 1 result from an estimated 1 matches for "pl2odydwzv64v3u3".

2009 Mar 19
1
How to keep attributes when dropping factor levels?
Dear All, to drop unused factor levels two ways are outlined in R-help. In both cases a label attribute is lost. The same happens, when using car:::recode. Is there a simple way to avoid losing attributes? Thanks, Heinz ## example ff <- factor(substring("statistics", 1:10, 1:10), levels=letters) attributes(ff)$label <- 'test label' attributes(ff)$label gg <- ff[,