CheckBinaryMatrix: Checks if a data matrix is binary

View source: R/CheckBinaryMatrix.R

CheckBinaryMatrixR Documentation

Checks if a data matrix is binary

Description

Checks if a data matrix is binary

Usage

CheckBinaryMatrix(x)

Arguments

x

Matrix to check.

Details

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

Value

TRUE if the matrix is binary.

Author(s)

Jose Luis Vicente-Villardon

Examples

data(spiders)
sp=Dataframe2BinaryMatrix(spiders)
CheckBinaryMatrix(sp)


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