Learn R Programming

backports (version 1.5.0)

null_coalesce_operator: 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

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

bp_null_coalesce(NULL, FALSE)

Run the code above in your browser using DataLab