apply_if.Rd
Apply function if condition holds
apply_if(x, cond, f)
Object to which function is applied conditionally.
Logical.
Function that takes one argument x.
x
If cond f(x), else x.
cond
f(x)