is.none | R Documentation |
Returns TRUE
if x
is either FALSE
, 0
, NULL
, NA
and
empty lists or an empty string. Inspired by python's
bool.
is.none(x)
x |
object to test |
TRUE
if x
is FALSE
, 0, NULL
, NA
, an empty list or an empty
string. Else FALSE.
is.none(FALSE) # TRUE
is.none(0) # TRUE
is.none(1) # FALSE
is.none(NA) # TRUE
is.none(list()) # TRUE
is.none("") # TRUE
is.none(character()) # TRUE
is.none(numeric()) # TRUE
is.none(logical()) # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.