as_class_pred: Coerce to a 'class_pred' object

Description Usage Arguments Examples

View source: R/class-pred.R

Description

as_class_pred() provides coercion to class_pred from other existing objects.

Usage

1
as_class_pred(x, which = integer(), equivocal = "[EQ]")

Arguments

x

A factor or ordered factor.

which

An integer vector specifying the locations of x to declare as equivocal.

equivocal

A single character specifying the equivocal label used when printing.

Examples

1
2
x <- factor(c("Yes", "No", "Yes", "Yes"))
as_class_pred(x)

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