ifelseProper: ifelse replacement for properly returning all datatypes.

Description Usage Arguments Value Note

View source: R/tools.R

Description

ifelse replacement for properly returning all datatypes.

Usage

1
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


DarkerThanEver/personalR documentation built on Dec. 17, 2021, 4:06 p.m.