two_value_to_factor: Convert two-value vectors to factors

View source: R/helpfunctions_checks.R

two_value_to_factorR Documentation

Convert two-value vectors to factors

Description

Convert two-value vectors to factors

Usage

two_value_to_factor(x)

Arguments

x

a vector

Value

the vector converted to a factor if it has exactly two unique (non-missing) values and is not already a factor; otherwise the input


JointAI documentation built on Jan. 30, 2026, 5:07 p.m.