.get {hash} | R Documentation |
Returns the values of a hash. By default, it attempts to simplify the results as a vector ( or matrixs ) if possible.
This funciton is hidden and should not normally be needed. The accessor
methods: \$, [ and [[
provide for much more convenient access.
See hash
.get(hash, keys, ... )
hash |
A hash object. |
keys |
A vector coerced to valid key names by validate.key |
... |
Further arguments supplied to sapply . |
Takes the keys, coerces them to valid keys and returns the associated
values in a form dictated by ...
arguments supllied to sapply
such as simplify
or USE.NAMES
. See sapply
for details.
A list or vector of hash values in
Christopher Brown
h <- hash( letters, 1:26 ) .get( h, "b" ) # 2