null: Default value for NULL

nullR Documentation

Default value for NULL

Description

Replaces NULL with a default value.

Usage

x %||% y

Arguments

x, y

An object.

Value

If x is NULL, returns y; otherwise returns x.

See Also

Other utilities: concat


nfrerebeau/codex documentation built on Feb. 2, 2025, 8:10 p.m.