Description Usage Arguments Value Note
Return a value only if another is not NA
1 |
x |
The value to test for NA |
trueValue |
The value to return if x is not NA |
defaultValue |
The value to return if x is NA |
defaultValue if x is NA or trueValue if x is not NA
Not terribly different from an ifelse but is more graceful with NULL values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.