null_coalesce_operator {backports}R 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)

[Package backports version 1.5.0 Index]