powered by
Convert two-value vectors to factors
two_value_to_factor(x)
the vector converted to a factor if it has exactly two unique (non-missing) values and is not already a factor; otherwise the input
a vector