Description Usage Arguments Examples
This infix function makes it easy to replace NULL
's with
a default value. It's inspired by the way that Ruby's or operation
(`||`
) works.
1 | a %||% b
|
a, b |
If |
1 2 | 1 %||% 2 # returns 1
NULL %||% 2 # returns 2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.