Learn R Programming

examly (version 0.2.0)

grapes-or-or-grapes: Null-coalescing operator

Description

Returns a unless it is NULL; otherwise returns b.

Usage

a %||% b

Value

a if not NULL, else b.

Arguments

a

Left-hand side value.

b

Right-hand side fallback.