ifelseProper: ifelse replacement for properly returning all datatypes.

View source: R/tools.R

ifelseProperR Documentation

ifelse replacement for properly returning all datatypes.

Description

ifelse replacement for properly returning all datatypes.

Usage

ifelseProper(logicValue = NULL, ifTrue = NULL, ifFalse = NULL)

Arguments

logicValue

variable or expression resulting in TRUE or FALSE, if missing or not logical then the function will return NULL.

ifTrue

variable or expression to be returned when logicValue == TRUE

ifFalse

variable or expression to be returned when logicValue == FALSE

Value

depending on logicValue, ifTrue ir ifFalse.

Note

not vectorized


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.