and_byname {matsbyname} | R Documentation |
And "by name"
Description
Operands should be logical, although numerical operands are accepted.
Numerical operands are interpreted as FALSE
when 0
and
TRUE
for any other number.
Usage
and_byname(..., .summarise = FALSE)
Arguments
... |
Operands to the logical |
.summarise |
Tells whether the operation should be accomplished
across lists ( |
Value
Logical and
applied to the operands.
Examples
and_byname(TRUE)
and_byname(FALSE)
and_byname(list(TRUE, FALSE), list(TRUE, TRUE), list(TRUE, TRUE), list(TRUE, TRUE))
m1 <- matrix(c(TRUE, TRUE, TRUE, FALSE), nrow = 2, ncol = 2,
dimnames = list(c("r1", "r2"), c("c1", "c2")))
m2 <- matrix(c(TRUE, FALSE, TRUE, TRUE), nrow = 2, ncol = 2,
dimnames = list(c("r1", "r2"), c("c1", "c2")))
and_byname(m1, m1)
and_byname(m1, m2)
and_byname(list(m1, m1), list(m1, m1), list(m2, m2))
and_byname(list(m1, m1), list(m1, m1), list(m2, m2), .summarise = TRUE)
[Package matsbyname version 0.6.10 Index]