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)

backports documentation built on June 24, 2024, 5:24 p.m.