grapes-or-legit-or-grapes: If legit lhs, else rhs

%|legit|%R Documentation

If legit lhs, else rhs

Description

If legit lhs, else rhs

Usage

lhs %|legit|% rhs

Arguments

lhs

(expression) to try

rhs

(expression) to replace if expression fails

Value

If legit lhs else rhs

See Also

is_legit

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

Examples

(100 / NA) %|legit|% 4
list(a = 5)$a %|legit|% 4
list(a = 5)$b %|legit|% 4

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.