SparkR (version 2.1.2)

hash: hash

Description

Calculates the hash code of given columns, and returns the result as a int column.

Usage

hash(x, ...)

# S4 method for Column hash(x, ...)

Arguments

x

Column to compute on.

...

additional Column(s) to be included.

See Also

Other misc_funcs: crc32, md5, monotonically_increasing_id, sha1, sha2

Examples

Run this code
# NOT RUN {
hash(df$c)
# }

Run the code above in your browser using DataLab