set_if_not_null: Set a default value if an object is NOT null

Description Usage Arguments Value Author(s) References

View source: R/util.R

Description

Set a default value if an object is NOT null

Usage

1
set_if_not_null(lhs, rhs)

Arguments

lhs

An object to set if it's NOT null

rhs

The value to provide if x is NOT null

Value

lhs if lhs is null, else rhs

Author(s)

Hadley Wickham

References

https://adv-r.hadley.nz/functions.html#missing-arguments


Wang-Cankun/rDeepMAPS documentation built on Jan. 28, 2022, 7:10 a.m.