hash {hash} | R Documentation |
Preferred constructor for the hash-class
.
hash(keys,values)
keys |
Optional vector of keys |
values |
Optional argument of values |
hash
returns a hash object. The first argument is taken as
the vector of keys and must be coercable to a character vector.
The second argument will be taken as the corresponding values. See
.set
for how vectors of unequal length are interpretted
which does most of the work of this function.
An object of class hash.
Christopher Brown
h <- hash() h <- hash( letters, 1:26 )