levels.class_pred {probably} | R Documentation |
class_pred
levelsThe levels of a class_pred
object do not include the equivocal value.
## S3 method for class 'class_pred'
levels(x)
x |
A |
x <- class_pred(factor(1:5), which = 1)
# notice that even though `1` is not in the `class_pred` vector, the
# level remains from the original factor
levels(x)