Ifnone | R Documentation |
Set default value for object, including NULL and NA and length 0.
x %|||% y
x |
character/numeric/factor/list. An object which could be checked by |
y |
ANY. A default value |
%|||%
: x
unless NULL
, NA
nor length(x) == 0
, otherwise y
1 %|||% 1 NA %|||% 1 NULL %|||% 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.