hash | R Documentation |
Map an arbitrary character string to a shorter string of hexadecimal characters highly likely to be unique. It typically has a fixed width.
Arguments listed below are not validated for efficiency.
hash(lang = "", text = "", algorithm = "")
lang |
A non-empty and non-NA character string. The underlying language. A language is usually a code (of two or three letters) for a native language name. While users retain full control over codes, it is best to use language codes stemming from well-known schemes such as IETF BCP 47, or ISO 639-1 to maximize portability and cross-compatibility. |
text |
A non-NA character string. It can be empty. |
algorithm |
A non-empty and non-NA character string equal to |
Hashes generated by hash()
uniquely identify the lang
and text
pair.
Values passed to these arguments are concatenated with a colon character for
hashing purposes.
hash()
returns a character string, or NULL
if algorithm
is not
supported.
Translator
,
Text
,
normalize()
,
algorithms()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.