Learn R Programming

faux (version 1.1.0)

OR: Piped OR

Description

LHS if not NULL, otherwise RHS

Usage

l %||% r

Value

LHS if not NULL, otherwise RHS.

Arguments

l

LHS.

r

RHS.

Examples

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

Run the code above in your browser using DataLab