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. 24, 2024, 11:58 a.m.