powered by
Returns TRUE if x is either FALSE, 0, NULL, NAand empty lists or an empty string. Inspired by python's bool.
TRUE
x
FALSE
0
NULL
NA
is.none(x)
TRUE if x is FALSE, 0, NULL, NA, an empty list or an empty string. Else FALSE.
FALSE.
object to test
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
Run the code above in your browser using DataLab