probably (version 0.0.3)

levels.class_pred: Extract class_pred levels

Description

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

Usage

# S3 method for class_pred
levels(x)

Arguments

x

A class_pred object.

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataCamp Workspace