grapes-help-help-grapes: Nullish Coalescing Operator

%??%R Documentation

Nullish Coalescing Operator

Description

Returns the RHS operand if the LHS operand is NULL or NA.

Usage

lhs %??% rhs

Arguments

lhs

Any value.

rhs

Any non-null and non-NA value.

Value

lhs or rhs

Author(s)

Michael Pascale

Examples

1 %??% 2
NULL %??% 3
NA %??% NA %??% 4


rettopnivek/camrprojects documentation built on Dec. 20, 2024, 10:17 p.m.