Learn R Programming

anonymizer (version 0.2.0)

hash: Hash a vector.

Description

See digest for additional documentation.

Usage

hash(.x, .algo = "sha256", .seed = 0, ...)

Arguments

.x
a vector.
.algo
the name of the algorithm.
.seed
an integer to seed the random number generator.
...
additional arguments to be based to digest.

Value

A hashed version of the vector.

Details

The user is advised to check out Wikipedia for more information.

Examples

Run this code
# All algorithms available to digest::digest are available here
set.seed(1)
hash(letters, .algo = "sha256")
hash(letters, .algo = "crc32")

Run the code above in your browser using DataLab