Provides an interface to the 'Apache DataSketches' (<https://datasketches.apache.org/>) library of streaming algorithms for approximate analytics on data too large to hold or process exactly. Sketches are compact, mergeable summaries built in a single pass over a stream that answer queries such as approximate distinct counts, quantiles and ranks, frequent items and point-frequency estimates, weighted sampling, and set membership with mathematically proven error bounds. Implements Karnin-Lang-Liberty (KLL), Relative Error Quantiles (REQ), t-Digest, HyperLogLog (HLL), Compressed Probabilistic Counting (CPC), Theta, Frequent Items, Count-Min, Array of Doubles, Variance Optimal (VarOpt), Exact and Bounded Probabilistic Proportional-to-Size (EBPPS), and Bloom filter sketches, with native serialization for interoperability with other 'Apache DataSketches' implementations.
| Version: | 0.1.2 |
| Depends: | R (≥ 4.1.0) |
| Imports: | R6, rlang |
| LinkingTo: | cpp11 |
| Suggests: | testthat (≥ 3.0.0) |
| Published: | 2026-11-18 |
| DOI: | 10.32614/CRAN.package.data.sketches |
| Author: | Pedro Baltazar [aut, cre, cph], The Apache Software Foundation [ctb, cph] (Bundled Apache DataSketches C++ library, src/vendor/datasketches/), Yahoo Inc. [cph] (Apache DataSketches C++, 2015-2018 and 2021-2025), Verizon Media [cph] (Apache DataSketches C++, 2019-2020), Stephan Brumme [ctb, cph] (Bundled xxhash64.h (MIT)), Sun Microsystems, Inc. [cph] (FDLIBM log code adapted in bundled fdlibm_log.hpp), Austin Appleby [ctb] (Bundled public-domain MurmurHash3 code), Sean Eron Anderson [ctb] (Bundled public-domain bit-hack code in ceiling_power_of_2.hpp) |
| Maintainer: | Pedro Baltazar <pedrobtz at gmail.com> |
| BugReports: | https://github.com/pedrobtz/data.sketches/issues |
| License: | MIT + file LICENSE |
| Copyright: | file inst/COPYRIGHTS data.sketches copyright details |
| URL: | https://github.com/pedrobtz/data.sketches, https://pedrobtz.github.io/data.sketches/ |
| NeedsCompilation: | yes |
| SystemRequirements: | C++17 |
| Materials: | README, NEWS |
| CRAN checks: | data.sketches results |
| Reference manual: | data.sketches.html , data.sketches.pdf |
| Package source: | data.sketches_0.1.2.tar.gz |
| Windows binaries: | r-devel: data.sketches_0.1.2.zip, r-release: data.sketches_0.1.1.zip, r-oldrel: data.sketches_0.1.1.zip |
| macOS binaries: | r-release (arm64): data.sketches_0.1.2.tgz, r-oldrel (arm64): data.sketches_0.1.2.tgz, r-release (x86_64): data.sketches_0.1.2.tgz, r-oldrel (x86_64): data.sketches_0.1.2.tgz |
| Old sources: | data.sketches archive |
Please use the canonical form https://CRAN.R-project.org/package=data.sketches to link to this page.