Description Usage Value Author(s) Examples
Returns a hash code for this string. The hashcode for a String
object
is computed as
s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
using int arithmetic, where s[i]
is the ith character of the
string, n
is the length of the string, and ^
indicates
exponentiation. (The hash value of the empty string is zero.)
1 2 | ## S3 method for class 'String'
hashCode(this, ...)
|
Returns the hash code value of this String.
Henrik Bengtsson (http://www.braju.com/R/)
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.