isBinary: Check if a vector is dichotomous.

View source: R/isBinary.R

isBinaryR Documentation

Check if a vector is dichotomous.

Description

This function checks to see if a vector is dichotomous. This includes logical vectors and numeric vectors that contain only 0s and 1s.

Usage

isBinary(x)

Arguments

x

vector to check.

Value

TRUE if the vector is binary.


jbryer/VisualStats documentation built on Feb. 27, 2025, 6:19 p.m.