Skip to contents

Binary app inputs

Usage

pull_binary_cols(df)

Arguments

df

a data.frame or tibble

Value

a named character vector of binary column names

Examples

require(palmerpenguins)
#> Loading required package: palmerpenguins
#> Warning: there is no package called ‘palmerpenguins’
require(dplyr)
pull_binary_cols(palmerpenguins::penguins)
#> Error in purrr::map(.x = class, .f = col_class, df = df):  In index: 1.
#> Caused by error in `loadNamespace()`:
#> ! there is no package called ‘palmerpenguins’
pull_binary_cols(dplyr::starwars)
#>   gender 
#> "gender"