CheckBinaryVector {MultBiplotR}R Documentation

Checks if a vector is binary

Description

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

Usage

CheckBinaryVector(x)

Arguments

x

he vector to check

Value

The logical result

Author(s)

Jose luis Vicente Villardon

Examples

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

[Package MultBiplotR version 23.11.0 Index]