filter
0
0
Edited Sep 1, 2015
Alias: nulliffalse
Usage:[vector]x
←
filter(
[vector]expr,
[vector]test
)
Returns a vector x where:
x
i is set to expr
i when test
i evaluates to true or 1.
x
i is set to
null when test
i evaluates to false, 0 or
null.
Examples:
filter(Q1, country==1)filter(Q1, (country==1)==false)filter(Q1, and(country==1, gender==1))filter(Q1, or(segment==1, segment==2, segment==3))