View source: R/default_hash_fn.R
default_hash_fn | R Documentation |
generates string hashes for arbitrary R objects as follows.
This is the default hash function used by hashset
s and hashmap
s
objects.
default_hash_fn(key)
key |
an arbitrary R object. |
If key
is an atomic vector (as tested by
is.atomic(key)
) of length one, default_hash_fn(key)
simply
coerces the input to character. For more complex inputs, the function calls
digest(key)
from the digest package.
a character vector of length one. Hash digest of key
.
Valerio Gherardi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.