is_binary: Check if a vector is binary

View source: R/auto_stratify.R

is_binaryR Documentation

Check if a vector is binary

Description

return TRUE if the input is logical or if it contains only 0's and 1's

Usage

is_binary(col)

Arguments

col

a column from a data frame

Value

logical


stratamatch documentation built on March 31, 2022, 9:07 a.m.