hashCode | R Documentation |
Gets an integer hashcoded for R objects.
## Default S3 method:
hashCode(object, ...)
object |
A |
... |
Not used. |
A character
string is converted into a hashcode following Java
conventions by
s[1]*31^(n-1) + s[2]*31^(n-2) + ... + s[n]
using integer arithmetic, where s[i]
is the i
:th character
of the string, n
is the length of the string. The hash value of
the empty string is zero.
For all other types, as.integer()
is called by default.
Returns a vector
of integer
's.
Henrik Bengtsson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.