Description Usage Arguments Value
Checks if a value is empty. The meaning of empty state depends on x
class.
If x
is a data.frame
, the object is empty if it has zero columns or zero rows.
If x
is a character
vector, it is empty if x
has length zero, has at least one NA
,
or ""
value. If x
is a numeric
vector, it is empty if it has length zero or has
at least one NA
as its element. If x
is a list
, it is empty if it has length zero.
Otherwise, it is empty if it is NULL
or has length zero.
1 | .is_empty(x)
|
x |
Any object to be tested. |
TRUE
if x
is empty. FALSE
otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.