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)

villardon/MultBiplotR documentation built on June 5, 2021, 8:55 a.m.