Learn R Programming

nuggets

Extensible R framework for subgroup discovery (Atzmueller (2015)), contrast patterns (Chen (2022)), emerging patterns (Dong (1999)), association rules (Agrawal (1994)), and conditional correlations (Hájek (1978)). Both crisp (Boolean, binary) and fuzzy data are supported. The package generates conditions in the form of elementary conjunctions, evaluates them on a dataset and checks the induced sub-data for interesting statistical properties. A user-defined function may be defined to evaluate on each generated condition to search for custom patterns.

Installation

To install the stable version of nuggets from CRAN, type the following command within the R session:

install.packages("nuggets")

You can also install the development version of nuggets from GitHub with:

install.packages("devtools")
devtools::install_github("beerda/nuggets")

To start using the package, load it to the R session with:

library(nuggets)

Documentation

Read the full documentation of the nuggets package.

Copy Link

Version

Install

install.packages('nuggets')

Monthly Downloads

567

Version

1.4.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Michal Burda

Last Published

January 8th, 2025

Functions in nuggets (1.4.0)

dig_baseline_contrasts

Search for conditions that yield in statistically significant one-sample test in selected variables.
dig_correlations

Search for conditional correlations
dig_contrasts

Search for paired contrast patterns
dig_paired_baseline_contrasts

Search for conditions that provide significant differences between paired variables
dig_complement_contrasts

Search for conditions that provide significant differences in selected variables to the rest of the data table
dig_grid

Search for grid-based rules
dig

Search for patterns of custom type
dig_associations

Search for association rules
dichotomize

Create dummy columns from logicals or factors in a data frame
dig_implications

Search for association rules
partition

Convert columns of data frame to Boolean or fuzzy sets
var_grid

Create a tibble of combinations of selected column names
format_condition

Format a vector of predicates into a string with a condition
is_degree

Tests whether the given argument is a numeric value from the interval \([0,1]\)
nuggets-package

nuggets: Extensible Data Pattern Searching Framework
is_subset

Determine whether the first vector is a subset of the second vector
var_names

Extract variable names from predicates
which_antichain

Return indices of first elements of the list, which are incomparable with preceding elements.