any

Syntax

any(X)

Arguments

X is a scalar/pair/vector/matrix.

Details

Return 1 if there is at least one element in X that is true or not 0. NULL values are ignored.

Examples

any(1 0 2)
1

any(0 0 0)
0

any(0 0 NULL)
0

any(true false)
1

any(false false)
0

any(0..9$2:5)
1

Related function: all