.set
(Package: hash) :
assign key-value pair(s) to a hash
.set is an internal method for assigning key-value pairs to a hash. Normally, there is no need to use this function. Convenient access is provided by: hash, $, [ and [[ and their corresponding replacement methods.
values
(Package: hash) :
Extract values of a hash object.
Extract values from a hash object. This is a pseudo- accessor method that returns hash values (without keys) as a vector if possible, a list otherwise.
copy-methods
(Package: hash) :
Create a seperate copy of a hash object.
The copy hash method creates a independent copy of a hash object. Creating a copy using the assingment operator, <-, does not work as expected, since hashes are based on environments and environments are reference objects in R. The assignment operator consequently creates a linked copy to the original hash and not an independent copy. The copy method provides an identical unlinked copy of the hash.
Implements a S4 hash class in R similar to hashes / associatesd arrays / dictionaries in other programming languages. Where possible, the hash class uses the standard R accessors: $, [ and [[. Hash construction is flexible and takes several syntaxes and all hash operations are supported.