is_class_pred() checks if an object is a class_pred object.

is_class_pred(x)

Arguments

x

An object.

Examples

x <- class_pred(factor(1:5)) is_class_pred(x)
#> [1] TRUE