On 4/10/2007, at 8:29 AM, Peter Dalgaard wrote: > Rolf Turner wrote: >> P.S. ***Are*** there any risks/dangers in following Christos >> Hatzis' suggestion of simply doing >> >> levels(fff) <- c("U","A","S") ??? > Not if the levels are right to begin with. > > Problems only arise if fff somehow becomes a two-level factor, e.g. > if you do > fff <- fff[2:3, drop=TRUE].
Ah-ha. The light dawns. And one should ***never*** assume that the levels are right to begin with ---- Murphy's law being what it is! Thanks. cheers, Rolf ###################################################################### Attention:\ This e-mail message is privileged and confidenti...{{dropped}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.