50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

PERMANOVA (version 0.2.0)

BinaryVectorCheck: Checks if a vector is binary

Description

Checks if all the entries of a vector are 0 or 1.

Usage

BinaryVectorCheck(x)

Arguments

x

The vector to check

Value

The logical result.

Examples

Run this code
# NOT RUN {
x=c(0, 0, 0, 0,  1, 1, 1, 2)
BinaryVectorCheck(x)
# }

Run the code above in your browser using DataLab