if_else {linbin}R 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


[Package linbin version 0.1.3 Index]