Learn R Programming

GTAPViz (version 1.1.3)

.coalesce: Coalesce Two Values

Description

Returns the first non-NULL value from the given inputs.

Usage

.coalesce(x, y)

Value

The first non-NULL value. If `x` is NULL, returns `y`.

Arguments

x

First value to check.

y

Fallback value if `x` is NULL.