Skip to contents

Does not strictly enforce class typing like op-na-default

Usage

lhs %|% rhs

Arguments

lhs

vctr of values possibly containing NA on which replacement will be performed

rhs

vctr of values length 1 or the same length with which to replace NA

Value

vctr with class according to R's coercion rules.

See also

Other infixes: %allin%(), %nin%(), %|0|%(), %|legit|%(), %|try|%(), %|zchar|%()

Examples