do_if | R Documentation |
Conditionally apply expressions to a data object
do_if(.data, condition, .then, .else = NULL)
.data |
Input data |
condition |
A logical value to determine whether to use .then or .else |
.then |
Formula or function to apply to input data when condition is TRUE |
.else |
Formula or function to apply to input data when condition is FALSE; if NULL and condition is FALSE, data is left unchanged |
Output of appropriate .then/.else call
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.