logical2factor(x, ...)
"logical2factor"(x, ...)
"logical2factor"(x, ...)x is a vector either x or the result
of converting x into a factor with levels TRUE
and FALSE (in that order); if x is a data frame,
a data frame with all logicals converted to factors in this manner.