CheckBinaryVector: Checks if a vector is binary

Description Usage Arguments Value Author(s) Examples

View source: R/CheckBinaryMatrix.R

Description

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

Usage

1

Arguments

x

he 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)
CheckBinaryVector(x)

MultBiplotR documentation built on April 6, 2021, 9:08 a.m.