R-alpha: unclass(factor) incompatible

Thomas Lumley (thomas@biostat.washington.edu)
Fri, 13 Sep 1996 13:55:26 -0700 (PDT)

Date: Fri, 13 Sep 1996 13:55:26 -0700 (PDT)
From: Thomas Lumley <thomas@biostat.washington.edu>
To: r-testers@stat.math.ethz.ch
Subject: R-alpha: unclass(factor) incompatible
In-Reply-To: <199609131937.VAA00443@bush.kubism.ku.dk>

Presumably because factors are primitive in R, unclass(factor) does not 
produce a numeric vector as it does in S.

When you would use unclass(factor) in S, use as.numeric(factor) in R

thomas lumley
U Washington
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch