cheapr_if_else | R Documentation |
ifelse()
Cheaper version of ifelse()
cheapr_if_else(condition, true, false, na = false[NA_integer_])
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 |
A vector the same length as condition,
using a common type between true
, false
and default
.
case val_match
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.