check-scalar-hasLength | R Documentation |
Does the input have a non-zero or defined length?
hasLength(x, n = NULL)
x |
Object. |
n |
|
TRUE
on success;
FALSE
on failure, with cause set.
Updated 2023-09-29.
## TRUE ====
hasLength(1L)
hasLength(FALSE)
hasLength(datasets::mtcars)
hasLength("")
## FALSE ====
hasLength(NULL)
hasLength(character())
hasLength(data.frame())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.