ifNotNull | R Documentation |
NULL
, output the argument 2 if not
null, or output argument 3 otherwiseCheck if condition is not NULL
, if so output outputIfNotNull
,
otherwise, output outputIfNull
.
ifNotNull(condition, outputIfNotNull, outputIfNull = NULL)
condition |
argument 1 |
outputIfNotNull |
argument 2 |
outputIfNull |
argument 3 |
outputIfNotNull
if condition is not NULL
, outputIfNull
otherwise.
ifNotNull(NULL, "x") ifNotNull(NULL, "x", "y") ifNotNull(1 < 2, "x", "y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.