View source: R/dataInitialization.R
createHash | R Documentation |
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.
createHash(keys, initVals = NULL)
keys |
A vector of keys for the hash table. |
initVals |
Optional initial value for the hash table. |
A hash table with the specified keys and initial values.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.