%or% | R Documentation |
If a is not null, return a. Otherwise, return b.
a %||% b
a |
an object |
b |
an object |
a <- "a"
b <- "b"
d <- a %or% b # d == "a"
a <- NULL
d <- a %or% b # d == "b"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.