The function
factor
is used to encode a vector as a factor (the terms ‘category’ and
‘enumerated type’ are also used for factors). If argument ordered
is TRUE
, the factor levels are assumed to be ordered. For compatibility with S there is also a function ordered
.
No comments:
Post a Comment