any | R Documentation |
any
tests whether some of the values in a set of logical vectors are
true? fm.any
tests whether some of the values in a single vector are
true. fm.any
can evaluate it lazily.
fm.any(x, lazy = FALSE) ## S4 method for signature 'fm' any(x, ..., na.rm = FALSE) ## S4 method for signature 'fmV' any(x, ..., na.rm = FALSE)
x |
a logical FlashR vector. |
lazy |
indicates whether or not to evaluate it lazily. |
... |
zero or more logical vectors. |
na.rm |
a logical indicating whether missing values should be removed. |
The value is a logical vector of length one.
mat <- fm.runif.matrix(100, 10) > 0.5 any(mat) fm.any(mat)