SetIfNull: Set a default value if an object is null

View source: R/scUtilities.R

SetIfNullR Documentation

Set a default value if an object is null

Description

Set a default value if an object is null

Usage

SetIfNull(x, y)

Arguments

x

An object to set if it's null

y

The value to provide if x is null

Value

Returns y if x is null, otherwise returns x.


wzthu/wzzw documentation built on Aug. 13, 2022, 7:11 a.m.