Skip to content
Prev 306239 / 398506 Next

Recategorizing Nominal variable

On Tue, Sep 25, 2012 at 2:22 PM, Michael Leitson
<Michael.Leitson at wellstar.org> wrote:
Try something like

as.numeric(factor(x))

This works because factors are internally coded as one integer per
unique level.

Cheers,
Michael