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
## Error in eval(expr, envir, enclos): could not find function "hashCode"
hashCode(1.0) # 1072693248
## Error in eval(expr, envir, enclos): could not find function "hashCode"
hashCode("1") # 49
## Error in eval(expr, envir, enclos): could not find function "hashCode"