Test if a variable contains only two values. The variable does not need to be a numerical value, factors and logicals are supported as well.
NAs can be skipped by setting
1 2 3
a numeric or integer vector, a logical vector or a factor (ordered and unordered)
logical. If set to
logical, indicating whether
IsDichotomous tests a single variable. Flags returns the names of all the dichotomous variables in a list or data.frame.
x contains only two unique values,
Andri Signorell <firstname.lastname@example.org>
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.