Learn R Programming

lgspline (version 0.2.0)

is_binary: Test if Vector is Binary

Description

Test if Vector is Binary

Usage

is_binary(x)

Value

Logical indicating if x has exactly 2 unique values

Arguments

x

Vector to test