is_binary {stratamatch}R 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


[Package stratamatch version 0.1.9 Index]