Description Usage Arguments Value Examples
Replace NULL and NA values
1 | if_missing(x, y)
|
x |
an object, usually an atomic one |
y |
value to be returned if |
y
, if x
is NULL
, length 0, or if x[1]
is NA
; x
otherwise.
1 2 3 4 | if_missing(NULL, "n/a")
if_missing(NA, "n/a")
if_missing(c(), "n/a")
if_missing("something", "n/a")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.