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)
check_binary_vec(palmerpenguins::penguins$sex, type = "fct")
#> [1] TRUE
check_binary_vec(palmerpenguins::penguins$species, type = "fct")
#> [1] FALSE