On-the-fly indicator function for use in formulae

ind(cond)

Arguments

cond

a logical condition to be evaluated

Value

a binary (0/1) coded variable indicating whether the condition is true