Package 'RcppFarmHash'

Title: Interface to the Google 'FarmHash' Family of Hash Functions
Description: The Google 'FarmHash' family of hash functions is used by the Google 'BigQuery' data warehouse via the 'FARM_FINGERPRINT' function. This package permits to calculate these hash digest fingerprints directly from R, and uses the included 'FarmHash' files written by G. Pike and copyrighted by Google, Inc.
Authors: Dirk Eddelbuettel [aut, cre] , Geoff Pike [aut] (Author of FarmHash), Google, Inc. [cph] (Copyright for FarmHash)
Maintainer: Dirk Eddelbuettel <[email protected]>
License: GPL (>= 2)
Version: 0.0.3
Built: 2024-11-12 06:11:46 UTC
Source: https://github.com/eddelbuettel/rcppfarmhash

Help Index


Interface to the Google 'FarmHash' Family of Hash Functions

Description

The Google 'FarmHash' family of hash functions is used by the Google 'BigQuery' data warehouse via the 'FARM_FINGERPRINT' function. This package permits to calculate these hash digest fingerprints directly from R, and uses the included 'FarmHash' files written by G. Pike and copyrighted by Google, Inc.

Package Content

Index of help topics:

RcppFarmHash-package    Interface to the Google 'FarmHash' Family of
                        Hash Functions
farmhash                Compute a 'FarmHash' digest for a vector of
                        strings

Maintainer

Dirk Eddelbuettel <[email protected]>

Author(s)

Dirk Eddelbuettel [aut, cre] (<https://orcid.org/0000-0001-6419-907X>), Geoff Pike [aut] (Author of FarmHash), Google, Inc. [cph] (Copyright for FarmHash)


Compute a 'FarmHash' digest for a vector of strings

Description

Compute a 'FarmHash' digest for a vector of strings

Usage

farmhash(sv)

Arguments

sv

Vector of strings for which a hash digest is requested

Value

A vector of integer64 values (using the bit64 package to ‘decode’ the appropriate binary payload from a numeric vector).

Examples

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