| hash-class {hash} | R Documentation |
Implements a S4 hash class in R similar to hashes / associatesd arrays / dictionaries in languages. As much as possible these constructs have been given an R type interface.
Hash construction is flexible and takes several syntaxes.
Accessors are defined for \$, [ and [[.
.xData:"environment". This is the hashed environment
used for key-value storage. None by design.
signature(x = "hash", i = "ANY", j = "missing"): ... signature(x = "hash", i = "ANY", j = "missing", drop = "missing")
: ... signature(x = "hash", i = "ANY", j = "missing"): ... signature(x = "hash", i = "ANY", j = "missing"): ... signature(x = "hash"): ... signature(x = "hash"): ... signature(x = "hash"): ... signature(x = "ANY", hash = "hash"): ... signature(key = "ANY", hash = "hash"): ... signature(hash = "hash"): ... signature(x = "hash"): ... signature(x = "hash"): ... signature(x = "hash"): ...
For lists of any appreciable length hashes provide much quicker element access than named vectors.
Objects of class hash do not release memory with a call to
rm. clear must be called before rm to properly
release the memory.
Christopher Brown
http://en.wikipedia.org/wiki/Hash_table
http://en.wikipedia.org/wiki/Associative_array
See also as environment.
showClass("hash")