has.key {hash} | R Documentation |
has.key
returns a logical vector as long as keys
, indicating
which keys are defined on the hash.
has.key(key, hash, ...)
key |
A vector whose entries will be coerced to valid keys. |
hash |
A hash object. |
... |
arguments passed to further functions |
logical |
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
|
Christopher Brown
See also hash
h <- hash( letters, 1:26 ) all( has.key( letters, h ) ) # TRUE