Skip to content
Prev 42184 / 398500 Next

Factor names & levels

Damon Wischik <djw1005 at cam.ac.uk> writes:
The behaviour is *undefined*, for crying out loud! That means that if
you try to do it anyway, you may get an error, something
semi-sensible, or find that the code transfers a large sum of money to
a Danish bank account...

In the present implementation, the names attribute gets attached to
the factor just as to an integer vector, but it is not shown when
printing and there are several parts of the code where no attempt is
made to preserve names since there are not expected to be any.