cheapr_if_else {cheapr} | R Documentation |
Cheaper version of ifelse()
Description
Cheaper version of ifelse()
Usage
cheapr_if_else(condition, true, false, na = false[NA_integer_])
Arguments
condition |
logical A condition which will be used to evaluate the if else operation. |
true |
Value(s) to replace |
false |
Value(s) to replace |
na |
Catch-all value(s) to replace all other instances,
where |
Value
A vector the same length as condition,
using a common type between true
, false
and default
.
See Also
[Package cheapr version 1.3.2 Index]