CheckBinaryVector function

Checks if a vector is binary

Checks if a vector is binary

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

CheckBinaryVector(x)

Arguments

  • x: he vector to check

Returns

The logical result

Author(s)

Jose luis Vicente Villardon

Examples

x=c(0, 0, 0, 0, 1, 1, 1, 2) CheckBinaryVector(x)
  • Maintainer: Jose Luis Vicente Villardon
  • License: GPL (>= 2)
  • Last published: 2023-11-21

Useful links