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 May 31, 2023, 8:40 p.m.