ensure: Return y if x does not exist, otherwise return x

View source: R/algorithm.R

ensureR Documentation

Return y if x does not exist, otherwise return x

Description

Return y if x does not exist, otherwise return x

Usage

ensure(x, y)

Arguments

x

target value

y

alternatively returned value

Value

x or y


hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.