null_coalesce_operator: Backport of the null-coalescing operator for R < 4.4.0

null_coalesce_operatorR Documentation

Backport of the null-coalescing operator for R < 4.4.0

Description

See the original description in Control.

Usage

x %||% y

Arguments

x

(any).

y

(any).

Examples

# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_null_coalesce = getFromNamespace("%||%", "backports")

bp_null_coalesce(NULL, FALSE)

mllg/backports documentation built on Aug. 12, 2024, 12:31 p.m.