locate-equivocal: Locate equivocal values

locate-equivocalR Documentation

Locate equivocal values

Description

These functions provide multiple methods of checking for equivocal values, and finding their locations.

Usage

is_equivocal(x)

which_equivocal(x)

any_equivocal(x)

Arguments

x

A class_pred object.

Value

is_equivocal() returns a logical vector the same length as x where TRUE means the value is equivocal.

which_equivocal() returns an integer vector specifying the locations of the equivocal values.

any_equivocal() returns TRUE if there are any equivocal values.

Examples


x <- class_pred(factor(1:10), which = c(2, 5))

is_equivocal(x)

which_equivocal(x)

any_equivocal(x)


topepo/probably documentation built on April 6, 2024, 7:32 p.m.