coalesce: Return first non null argument.

View source: R/internal.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


microbenchmark documentation built on Sept. 11, 2024, 8:45 p.m.