levels.class_pred: Extract 'class_pred' levels

Description Usage Arguments Examples

View source: R/class-pred.R

Description

The levels of a class_pred object do not include the equivocal value.

Usage

1
2
## S3 method for class 'class_pred'
levels(x)

Arguments

x

A class_pred object.

Examples

1
2
3
4
5
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)

probably documentation built on July 1, 2020, 7:08 p.m.