all_byname: Are all matrix elements 'TRUE'?

View source: R/Unary.R

all_bynameR Documentation

Are all matrix elements TRUE?

Description

Tells whether all elements in matrix a are true.

Usage

all_byname(a)

Arguments

a

a matrix or list of matrices

Details

a can be a matrix or a list of matrices.

Value

TRUE if all elements of a are TRUE, FALSE otherwise

Examples

all_byname(matrix(rep(TRUE, times = 4), nrow = 2, ncol = 2))
all_byname(matrix(c(TRUE, FALSE), nrow = 2, ncol = 1))

matsbyname documentation built on Oct. 19, 2023, 5:11 p.m.