find_binary | R Documentation |
Returns either a vector with all clearly binary variables or a list with additional information on variables that might also be binary.
find_binary( .data, .output = "bin", .include = FALSE, .yes = NULL, .no = NULL, .na = NULL, .print = TRUE )
.data |
A data.frame or tibble. |
.output |
"bin" returns a vector of binary variables, "list" returns a list with binary variables, variables coded yes/no and more information. |
.include |
If .include = TRUE, variables recoded as 0/1 within the function are returned in the list-output - requires .output = "list". |
.yes |
Optional character vector that can be used to feed values that should be used as 'yes'. |
.no |
Optional character vector that can be used to feed values that should be used as 'no'. |
.na |
Optional character vector that can be used to feed values that should be used as 'NA'. |
.print |
If .print = TRUE, values detected as yes/no are printed. |
Either a character vector with clearly binary variables or a list with additional information.
-
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.