BinaryVectorCheck: Checks if a vector is binary

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1

Arguments

x

The vector to check

Value

The logical result.

Author(s)

Jose Luis Vicente-Villardon

Examples

1
2
x=c(0, 0, 0, 0,  1, 1, 1, 2)
BinaryVectorCheck(x)

PERMANOVA documentation built on Sept. 6, 2021, 5:07 p.m.