.get {hash}R Documentation

Get values from a hash

Description

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

Usage

    .get(hash, keys, drop=TRUE, ... )

Arguments

hash A hash object.
keys A vector coerced to valid key names by make.keys
drop Whether to reduce the results to the lowest dimension
... Further arguments supplied to sapply.

Details

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.

Value

A list or vector of hash values in

Author(s)

Christopher Brown

See Also

See Also hash, .set, sapply

Examples

  h <- hash( letters, 1:26 )
 .get( h, "b" )  # 2

[Package hash version 1.0.2 Index]