nulliftrue
0
0
Edited Sep 1, 2015
Usage:
[vector]
x
←
nulliftrue(
[vector]expr,
[vector]test
)
Returns a vector x where:
x
i is set to expr
i when test
i evaluates to false, 0 or
null.
x
i is set to
null when test
i evaluates to true or 1.
Example:
nulliftrue(Q1, country==1) result will contain everyone whose country doesn't equal 1.