powered by
Encode TRUE as 1, and FALSE as 0 (integers)
logical_to_binary(x)logicalToBinary(x)
logicalToBinary(x)
data frame which may contain logical fields
data frame without logical fields
# NOT RUN { d <- data.frame( a = c(TRUE, FALSE, TRUE), b = c(FALSE, TRUE, FALSE), c = c(-1, 0, 1), d = c("not", "logical", "values") ) logical_to_binary(d) # }
Run the code above in your browser using DataLab