filter

0     0     Edited Sep 1, 2015
Alias: nulliffalse

Usage:
[vector]x filter( [vector]expr, [vector]test )

Returns a vector x where:
xi is set to expri when testi evaluates to true or 1.
xi is set to null when testi 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))


Leave a Comment

Please sign in to leave a comment.