replace_null: Replace NULL with other value (NULL-OR-operator)

replace_nullR Documentation

Replace NULL with other value (NULL-OR-operator)

Description

Used internally, primarily when working with list arguments, because, e.g., list_name$element_name yields NULL when unspecified.

Usage

a %||% b

Arguments

a, b

atomic values of any type.

Value

If a is NULL, b is returned. Otherwise a is returned.


adaptr documentation built on May 29, 2024, 7:48 a.m.