Learn R Programming

ggchord (version 0.2.0)

if_null_else: 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)

Value

x if x is not NULL, otherwise y

Arguments

x

Any R object (may be NULL)

y

Default value to return when x is NULL