hashCode {SparkR}R Documentation

Compute the hashCode of an object

Description

Java-style function to compute the hashCode for the given object. Returns an integer value.

Usage

hashCode(key)

Arguments

key

the object to be hashed

Details

This only works for integer, numeric and character types right now.

Value

the hash code as an integer

Note

hashCode since 1.4.0

Examples



## Not run: 
##D hashCode(1L) # 1
##D hashCode(1.0) # 1072693248
##D hashCode("1") # 49
## End(Not run)




[Package SparkR version 3.2.4 Index]