is_binary {lgspline}R Documentation

Test if Vector is Binary

Description

Test if Vector is Binary

Usage

is_binary(x)

Arguments

x

Vector to test

Value

Logical indicating if x has exactly 2 unique values


[Package lgspline version 0.2.0 Index]