On Wed, 19 Nov 2003, Spencer Graves wrote:

>       Have you considered the following:
>
>       > f <- factor(1:2)
>       > as.numeric(as.character(f))
>       [1] 1 2
>
>       See Venables and Ripley (2000) S Programming (Springer, p. 15).

Or see the FAQ, which makes the same point.

        -thomas

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to