Create, Optimize, and Refine Data Nuggets
Overview
Creating, optimizing and refining data nuggets. Data nuggets reduce a large dataset into a small collection of nuggets of data, each containing a center (location), weight (importance), and scale (variability) parameter. Data nugget centers are selected based on a space-filling maximum-entropy scheme. Data nugget weights are created by counting the number observations closest to a given data nugget center. We then say the data nugget 'contains' these observations and the data nugget center is recalculated as the mean of these observations. Data nugget scales are created by calculating the trace of the covariance matrix of the observations contained within a data nugget divided by the dimension of the dataset. The optimal number of data nuggets is determined data-driven based on the relative second-order differences of propensity score indices. Data nuggets are refined by 'splitting' data nuggets which have high scales or elongated shapes (defined as the ratio of the two largest eigenvalues of the covariance matrix of the observations contained within the data nugget).
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 7includes a package overview page
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 71%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 100%
Downloads
Dependencies
Installing datanugget adds 27 packages (12 with compiled code, 18 MB of source tarballs). Heaviest: ggplot2 6.0 MB, Rcpp 1.8 MB, isoband 1.5 MB.
Code & Tests
People & History
Previously maintained by Yajie Duan (1.2.1 to 1.3.1) and Traymon Beavers (1.0.0).
Pick two releases to compare their code metrics.
- 1.5.0Latest
- RR 4.6.0 released · 2026-04-24
- 1.4.02025-12-04 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.3.12024-09-14 · diff ↗
- 1.3.02024-07-30 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.2.42023-11-28 · diff ↗
- 1.2.22023-10-26 · diff ↗
- unarchivedReturned to CRAN2023-05-02
- 1.2.12023-05-02 · diff ↗
- RR 4.3.0 released · 2023-04-21
- archivedRemoved from CRAN2023-04-07issues were not corrected in time
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
Show 2 earlier eventsHide 2 earlier events
- 1.0.02020-01-24
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2020-01-24
- Total releases
- 8 / 6 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 4.0
- Download size
- 17 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("datanugget")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.