View source: R/data_manip_utils.R
is_valueless | R Documentation |
A vector is "valueless" if it has zero length or contains only NA values. A list is empty if has zero length or contains only empty vectors.
is_valueless(x, empty_values = NA)
x |
The object to check for emptiness. |
empty_values |
A vector of values that should be considered
"empty", in addition to NA. Any vector containing only NA and
these values will be considered "valueless". For example, if
you want to know whether a numeric vector contains any non-NA,
non-zero values, you could use |
rlang::is_empty()
, which only checks for zero length.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.