powered by
class_pred
as_class_pred() provides coercion to class_pred from other existing objects.
as_class_pred()
as_class_pred(x, which = integer(), equivocal = "[EQ]")
A factor or ordered factor.
An integer vector specifying the locations of x to declare as equivocal.
x
A single character specifying the equivocal label used when printing.
x <- factor(c("Yes", "No", "Yes", "Yes")) as_class_pred(x)
Run the code above in your browser using DataLab