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 <email@example.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.