if_else: Generalized If Else

Description Usage Arguments See Also

View source: R/helper_functions.R

Description

Returns different values depending on whether a test is TRUE or FALSE.

Usage

1
if_else(test, yes, no)

Arguments

test

An object which can be coerced to a logical value.

yes

Value returned if test is TRUE.

no

Value returned if test is FALSE.

See Also

ifelse


linbin documentation built on April 20, 2021, 5:07 p.m.