powered by
is.empty tests to see if any key value pairs are assigned on a hash object.
is.empty
hash
is.empty(x)
hash object.
logical.
Returns TRUE if no key-value pairs are defined for the hash, FALSE otherwise.
TRUE
FALSE
exists.
exists
# NOT RUN { h <- hash( a=1, b=2, c=3 ) is.empty(h) # FALSE clear(h) is.empty(h) # TRUE h <- hash() is.empty(h) # TRUE # }
Run the code above in your browser using DataLab