if_null_else: Missing value handling operator

if_null_elseR Documentation

Missing value handling operator

Description

Used to safely handle NULL values: returns y if x is NULL, otherwise returns x

Usage

if_null_else(x, y)

Arguments

x

Any R object (may be NULL)

y

Default value to return when x is NULL

Value

x if x is not NULL, otherwise y


ggchord documentation built on Aug. 8, 2025, 6:15 p.m.