is.none {toscutil} | R Documentation |
Truth checking as in Python
Description
Returns TRUE
if x
is either FALSE
, 0
, NULL
, NA
and
empty lists or an empty string. Inspired by python's
bool.
Usage
is.none(x)
Arguments
x |
object to test |
Value
TRUE
if x
is FALSE
, 0, NULL
, NA
, an empty list or an empty
string. Else FALSE.
Examples
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
[Package toscutil version 2.8.0 Index]