which of three vectors are the elements (all, any) true?
which3(
x,
y,
z,
And = TRUE,
anyNAx = anyNA(x),
anyNAy = anyNA(y),
anyNAz = anyNA(z)
)
Logical vectors. Either the same length or length-1
Boolean. If TRUE
, only indices where all of x, y, z
are TRUE are returned; if FALSE
, any index where x, y, z
are TRUE are returned.
Whether or not the inputs have NA
.