| invalid | R Documentation |
An object is valid if it is not null, not missing (NA), and is not an empty vector. Note that this is per se not vectorised, because a non-empty list or vector is valid as such.
invalid(x) valid(x)
x |
Any object, value or NULL |
logical
valid: x is not invalid
invalid(NULL) # TRUE
invalid(NA) # TRUE
invalid(list()) # TRUE
invalid("a") # FALSE
invalid(c(1,2,3)) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.