Interface to the Google 'FarmHash' Family of Hash Functions

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.


Rcpp Interface to the Google FarmHash Family of Hash Functions

CI License CRAN Dependencies r-universe Downloads Last Commit

Motivation

Google BigQuery uses FarmHash in its FARM_FINGERPRINT function. By using the same underlying FarmHash library, this package allows R users to compute the same hash digest fingerprints.

Example

> suppressMessages({ library(RcppFarmHash); library(bit64) })
> farmhash(c("foo", "bar", "baz"))
integer64
[1] 6150913649986995171 -98778129085727977  3758908700204700005
>

Installation

The package can be installed from CRAN via the usual command

install.packages("RcppFarmHash")

or, alternatively, also directly from the source repository:

remotes::install_github("eddelbuettel/rcppfarmhash")

License

This package is licensed under the GNU GPL, Version 2 or later.

FarmHash is licensed under the MIT license.

Author

For the R package, Dirk Eddelbuettel.

For everything pertaining to FarmHash, Geoff Pike and contributors.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("RcppFarmHash")

0.0.4 by Dirk Eddelbuettel, a month ago


https://github.com/eddelbuettel/rcppfarmhash/, https://dirk.eddelbuettel.com/code/rcpp.farmhash.html


Report a bug at https://github.com/eddelbuettel/rcppfarmhash/issues


Browse source code at https://github.com/cran/RcppFarmHash


Authors: Dirk Eddelbuettel [aut, cre] (ORCID: , Geoff Pike [aut] (Author of FarmHash) , Google , Inc. [cph] (Copyright for FarmHash)


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Rcpp

Suggests bit64

Linking to Rcpp, RcppInt64


See at CRAN