Description Usage Arguments Value Warning See Also Examples
Encodes binary data into 0 and 1. Optionally records the result into a log file.
1 | encode_binary(x, out.int=FALSE, full_print=TRUE, log = eval.parent(in_log_default))
|
x |
The data frame |
out.int |
Whether to convert encoded |
full_print |
When set to |
log |
Controls log files. To produce log files, assign it or the |
An encoded data frame.
x
can only be a data frame. Don't pass a vector to it.
1 2 3 4 5 6 7 8 9 10 11 12 | # refer to vignettes if you want to use log files
message('refer to vignettes if you want to use log files')
# building a data frame
A <- as.factor(c('x', 'y', 'x'))
B <- as.factor(c('y', 'x', 'y'))
C <- as.factor(c('i', 'j', 'i'))
df <- data.frame(A, B, C)
# encoding
df <- encode_binary(df)
print(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.