Description Usage Arguments Examples
Look at a logical TRUE FALSE column and make new column with binary representation.
1 | bool_to_binary(df, col, remove_bool_col = FALSE)
|
df, col |
a data frame and logical TRUE FALSE column to change to binary |
1 | iris %>% mutate(Setosa = str_detect(.$Species, "setosa")) %>% bool_to_binary(.,Setosa)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.