iftrue | R Documentation |
If the focal input is TRUE
, replace it with
alternative.
iftrue(x = TRUE, alt = NULL)
x |
Focal input. |
alt |
Alternative value. |
x
if not TRUE
, alt
otherwise.
iftrue()
iftrue(TRUE, 1)
iftrue(2, 1)
iftrue(FALSE, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.