powered by
has.key returns a logical vector as long as keys, indicating which keys are defined on the hash.
has.key
keys
has.key(key, hash, ...)
A logical vector of length key indicating whether the key is defined in the hash. has.key also accepts ... to be passed to underlying sapply
key
...
sapply
A vector whose entries will be coerced to valid keys.
A hash object.
hash
arguments passed to further functions
Christopher Brown
None.
See also hash
h <- hash( letters, 1:26 ) all( has.key( letters, h ) ) # TRUE
Run the code above in your browser using DataLab