| createHash {FastUtils} | R Documentation | 
Create a Hash Table
Description
This function creates a hash table from a set of keys and optional initial value.
Note that it is simply a convenience wrapper for the hash package.
Usage
createHash(keys, init_vals = NULL)
Arguments
keys | 
 A vector of keys for the hash table.  | 
init_vals | 
 Optional initial value for the hash table.  | 
Value
A hash table with the specified keys and initial values.
Examples
# Create a hash table with keys and no initial values
createHash(c("a", "b", "c"))
# Create a hash table with keys and initial value of 0
createHash(c("a", "b", "c"), 0)
[Package FastUtils version 0.1.1 Index]