is_binary: Test if a vector is binary

Description Usage Arguments Details Value

View source: R/tools.R

Description

Take a vector or a matrix, then check if all elements are equal to "0 or "1".

Usage

1
is_binary(mat)

Arguments

mat

a binary/numeric matrix.

Details

None.

Value

Return TRUE is the matrix is a binary matrix.


functClust documentation built on Dec. 2, 2020, 5:06 p.m.