Learn R Programming

RcppFarmHash (version 0.0.3)

farmhash: Compute a 'FarmHash' digest for a vector of strings

Description

Compute a 'FarmHash' digest for a vector of strings

Usage

farmhash(sv)

Value

A vector of integer64 values (using the bit64

package to ‘decode’ the appropriate binary payload from a numeric vector).

Arguments

sv

Vector of strings for which a hash digest is requested

Examples

Run this code
if (requireNamespace("bit64", quietly=TRUE)) {
   suppressMessages(library(bit64))
}
farmhash(c("foo", "bar", "baz"))

Run the code above in your browser using DataLab