has.key {hash} | R Documentation |
Test for existence of key(s) on a hash
Description
has.key
returns a logical vector as long as keys
, indicating
which keys are defined on the hash.
Usage
has.key(key, hash, ...)
Arguments
key |
A vector whose entries will be coerced to valid keys. |
hash |
A |
... |
arguments passed to further functions |
Details
None.
Value
logical |
A logical vector of length |
Author(s)
Christopher Brown
See Also
See also hash
Examples
h <- hash( letters, 1:26 )
all( has.key( letters, h ) ) # TRUE
[Package hash version 2.2.6.3 Index]