.mcee_check_binary_col | R Documentation |
Validate binary column coding
.mcee_check_binary_col(data, col, allow_all1 = TRUE, label = NULL)
data |
Data frame containing the column |
col |
Column name (can be NULL, in which case validation is skipped) |
allow_all1 |
Logical; if FALSE, column cannot be all 1s |
label |
Optional descriptive label for error messages |
Invisibly TRUE if valid, otherwise stops with error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.