Skip to contents

Binary checks (helper)

Usage

check_binary_vec(x, type)

Arguments

x

a vector

type

type of column to return.

Value

TRUE/FALSE if binary

Examples

require(palmerpenguins)
#> Loading required package: palmerpenguins
#> Warning: there is no package called ‘palmerpenguins’
check_binary_vec(palmerpenguins::penguins$sex, type = "fct")
#> Error in loadNamespace(x): there is no package called ‘palmerpenguins’
check_binary_vec(palmerpenguins::penguins$species, type = "fct")
#> Error in loadNamespace(x): there is no package called ‘palmerpenguins’