any_byname: Are any matrix elements 'TRUE'?

View source: R/Unary.R

any_bynameR Documentation

Are any matrix elements TRUE?

Description

Tells whether any elements in matrix a are true.

Usage

any_byname(a)

Arguments

a

a matrix or list of matrices

Details

a can be a matrix or a list of matrices.

Value

TRUE if any elements of a are TRUE, FALSE otherwise

Examples

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

MatthewHeun/byname documentation built on Feb. 17, 2024, 4:51 p.m.