Learn R Programming

cohortBuilder (version 0.3.0)

.if_value: Return default value if values are equal

Description

Return default value if values are equal

Usage

.if_value(x, value, default)

Value

Evaluated condition or provided default value.

Arguments

x

Condition to be compared with value.

value

Value to be compared with x.

default

Default value to be returned when `x` is identical to `value`.