Learn R Programming

linbin (version 0.1.3)

if_else: 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