hashCode: Gets an integer hashcoded for R objects
Description
Gets an integer hashcoded for R objects.Usage
## S3 method for class 'default':
hashCode(object, ...)
Value
- Returns a
vector
of integer
's.
}
details{
A code{character} string is converted into a hashcode following Java
conventions by
code{s[1]*31^(n-1) + s[2]*31^(n-2) + ... + s[n]}
using integer arithmetic, where code{s[i]} is the code{i}:th character
of the string, code{n} is the length of the string. The hash value of
the empty string is zero.
For all other objects, by default code{as.integer()} is called.
}
author{Henrik Bengtsson (url{http://www.braju.com/R/})}
keyword{programming}
keyword{methods}