Description Usage Arguments Value Examples
A simple helper function that returns NULL
if x
is a scalar object, i.e.
an object of length equals 1. Otherwise it returns 1L.
1 |
x |
any object for which length function is defined. |
NULL
if x
is of length 1, otherwise, 1L.
1 2 | h_null_if_scalar(c(1, 3))
h_null_if_scalar(2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.