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.
Examples
# Create a hash table with keys and no initial values
createHash(c("a", "b", "c"))
#> <S4 Type Object>
#> attr(,".xData")
#> <environment: 0x55e8f12036a8>
# Create a hash table with keys and initial value of 0
createHash(c("a", "b", "c"), 0)
#> <S4 Type Object>
#> attr(,".xData")
#> <environment: 0x55e8f1a8da58>