hashCode {SparkR} | R Documentation |
Java-style function to compute the hashCode for the given object. Returns an integer value.
hashCode(key)
key |
the object to be hashed |
This only works for integer, numeric and character types right now.
the hash code as an integer
hashCode(1L) # 1
## [1] 1
hashCode(1.0) # 1072693248
## [1] 1072693248
hashCode("1") # 49
## [1] 49