is.empty: Test if a hash has no key-value pairs.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/Class-hash.R

Description

is.empty tests to see if any key value pairs are assigned on a hash object.

Usage

1

Arguments

x

hash object.

Details

Returns TRUE if no key-value pairs are defined for the hash, FALSE otherwise.

Value

logical.

Author(s)

Christopher Brown.

See Also

exists.

Examples

1
2
3
4
5
6
    h <- hash( a=1, b=2, c=3 )
    is.empty(h)    # FALSE
    clear(h)
    is.empty(h)    # TRUE
    h <- hash()
    is.empty(h)    # TRUE

hash documentation built on May 1, 2019, 7:28 p.m.