Learn R Programming

textreuse (version 1.0.1)

hash_string: Hash a string to an integer

Description

Hash a string to an integer

Usage

hash_string(x)

Value

A vector of integer hashes.

Arguments

x

A character vector to be hashed.

Examples

Run this code
s <- c("How", "many", "roads", "must", "a", "man", "walk", "down")
hash_string(s)

Run the code above in your browser using DataLab