Learn R Programming

textAnnotatoR (version 1.0.1)

grapes-or-or-grapes: Null coalescing operator

Description

Provides null coalescing functionality, returning the first non-NULL argument

Provides null coalescing functionality, returning the first non-NULL argument

Usage

a %||% b

a %||% b

Value

Returns a if not NULL, otherwise returns b

Returns a if not NULL, otherwise returns b

Arguments

a

First value to check

b

Second value (default) to use if first is NULL

Details

\

\