coalesce: Return first non null argument.

View source: R/utilities.r

coalesceR Documentation

Return first non null argument.

Description

This function is useful when processing complex arguments with multiple possible defaults based on other arguments that may or may not have been provided.

Usage

coalesce(...)

Arguments

...

List of values.

Value

First non null element in ....

Author(s)

Olaf Mersmann olafm@statistik.tu-dortmund.de


emoa documentation built on Sept. 11, 2024, 8:57 p.m.