R/equivalences_registry.R

## setup registry for equivalences rules
#' Equivalence Rules Registry
#'
#' @details
#' This is a registry that stores the equivalence rules that can be
#' applied using the \code{apply_rules()} method in an
#' \code{ImplicationSet}.
#'
#' One can obtain the list of available equivalence operators by:
#' \code{equivalencesRegistry$get_entry_names()}
#'
#' @export
#' @import registry
equivalencesRegistry <- registry::registry(registry_class = "equivalence_registry",
                                           entry_class = "equivalence_rule")

equivalencesRegistry$set_field("method",
                               type = "character",
                               is_key = TRUE,
                               index_FUN = registry::match_partial_ignorecase)

equivalencesRegistry$set_field("fun",
                               type = "function",
                               is_key = FALSE)
equivalencesRegistry$set_field("description",
                               type = "character",
                               is_key = FALSE)

Try the fcaR package in your browser

Any scripts or data that you put into this service are public.

fcaR documentation built on June 29, 2021, 1:06 a.m.