CheckBinaryVector: Checks if a vector is binary

View source: R/CheckBinaryMatrix.R

CheckBinaryVectorR 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)

MultBiplotR documentation built on Nov. 21, 2023, 5:08 p.m.