andM: and for Matrix

Description Usage Arguments Value See Also Examples

Description

applies the and (&) function accross a matrix recursivly

Usage

1
andM(mat)

Arguments

mat

input matrix of logicals

Value

a vector of logicals

See Also

~ors "&"

Examples

1
2
3
4
a<-as.matrix(cbind(c(TRUE,TRUE,TRUE),
                    c(FALSE,TRUE,FALSE)))
result<-orM(a)
result==c(TRUE,TRUE,TRUE)

alexjgriffith/CCCA documentation built on May 10, 2019, 8:52 a.m.