if_else: Generalized If Else

View source: R/helper_functions.R

if_elseR Documentation

Generalized If Else

Description

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

Usage

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


ezwelty/linbin documentation built on April 19, 2023, 8:41 a.m.