allR Documentation

Are All Values True?

Description

all tests whether all of the values in a set of logical vectors are true? fm.all tests whether all values in a single vector are true. fm.all can evaluate it lazily.

Usage

fm.all(x, lazy = FALSE)

## S4 method for signature 'fm'
all(x, ..., na.rm = FALSE)

## S4 method for signature 'fmV'
all(x, ..., na.rm = FALSE)

Arguments

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.

Value

The value is a logical vector of length one.

Examples

mat <- fm.runif.matrix(100, 10) > 0.5
all(mat)
fm.all(mat)