Description Usage Arguments Value Note
This function checks whether a string or character vector (of length 1), a list or any vector (numeric, atomic) is empty or not. From sjmisc.
1 |
x |
String, character vector, list, data.frame or numeric vector or factor. |
first.only |
Logical, if |
Logical, TRUE
if x
is a character vector or string and
is empty, TRUE
if x
is a vector or list and of length 0,
FALSE
otherwise.
NULL
- or NA
-values are also considered as "empty" (see
'Examples') and will return TRUE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.