null-coalesce: Null-coalescing Operator

null-coalesceR Documentation

Null-coalescing Operator

Description

Returns the left-hand side if it's not NULL, otherwise returns the right-hand side.

Usage

x %||% y

Arguments

x

First value to check.

y

Default value if x is NULL.

Value

x if not NULL, otherwise y.


cloudosR documentation built on June 1, 2026, 5:07 p.m.