is_binary: Check if vector-like object is binary.

Description Usage Arguments Value Examples

View source: R/helper_functions.R

Description

Check if vector-like object is binary.

Usage

1

Arguments

var

A vector-like object. This can also be a factor.

Value

Logical value indicating if input is binary or not.

Examples

1
2
var <- c(1, 1, 0, 0, 1)
is_binary(var)

dmolitor/umbrella documentation built on Nov. 10, 2020, 1:25 a.m.