Learn R Programming

MultBiplotR (version 23.11.0)

CheckBinaryMatrix: Checks if a data matrix is binary

Description

Checks if a data matrix is binary

Usage

CheckBinaryMatrix(x)

Value

TRUE if the matrix is binary.

Arguments

x

Matrix to check.

Author

Jose Luis Vicente-Villardon

Details

Checks if all the entries of the matix are either 0 or 1.

Examples

Run this code
data(spiders)
sp=Dataframe2BinaryMatrix(spiders)
CheckBinaryMatrix(sp)

Run the code above in your browser using DataLab