OR: Piped OR

Description Usage Arguments Value Examples

Description

LHS if not NULL, otherwise RHS

Usage

1
l %||% r

Arguments

l

LHS.

r

RHS.

Value

LHS if not NULL, otherwise RHS.

Examples

1
2
3
x <- list(b = 2, c = 3)
x$a %||% x$b %||% x$c
x$a %||% "default_value"

faux documentation built on Sept. 14, 2021, 1:08 a.m.