contextCount

Syntax

contextCount(X, Y)

Arguments

X and Y are vectors of the same length.

Details

Count the number of positions that are not NULL in both X and Y.

Examples

$ contextCount(1 2 3, 1 NULL 3)
2

$ contextCount(1..3,true false true)
3

$ contextCount(1 2 NULL, 1 NULL 3)
1

Related functions: contextSum, contextSum2