R/validatetools-package.R

#' Tools for validation rules
#'
#' \code{validatetools} is a utility package for managing validation rule sets
#' that are defined with \code{\link{validate}}. In production systems
#' validation rule sets tend to grow organically and accumulate redundant or
#' (partially) contradictory rules. `validatetools` helps to identify problems
#' with large rule sets and includes simplification methods for resolving
#' issues.
#' 
#' @section Problem detection:
#' 
#' The following methods allow for problem detection:
#' 
#' \itemize{
#'   \item \code{\link{is_infeasible}} checks a rule set for feasibility. An infeasible system must be corrected to be useful.
#'   \item \code{\link{detect_boundary_num}} shows for each numerical variable the allowed range of values.
#'   \item \code{\link{detect_boundary_cat}} shows for each categorical variable the allowed range of values.
#'   \item \code{\link{detect_fixed_variables}} shows variables whose value is fixated by the rule set.
#'   \item \code{\link{detect_redundancy}} shows which rules are already implied by other rules.
#' }
#' 
#' @section Simplifying rule set:
#'
#' The following methods detect possible simplifications and apply them to a rule set.
#' 
#' \itemize{
#'   \item \code{\link{substitute_values}}: replace variables with constants. 
#'   \item \code{\link{simplify_fixed_variables}}: substitute the fixed variables with their values in a rule set.
#'   \item \code{\link{simplify_conditional}}: remove redundant (parts of) conditional rules.
#'   \item \code{\link{remove_redundancy}}: remove redundant rules.
#' }
#' 
#' @references Statistical Data Cleaning with Applications in R, Mark van der Loo and Edwin de Jonge, ISBN: 978-1-118-89715-7
#' 
#' @name validatetools
#' @importFrom methods substituteDirect
#' @importFrom stats setNames
#' @importFrom utils head tail
#' @import validate
#' @docType package
NULL

Try the validatetools package in your browser

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

validatetools documentation built on Oct. 1, 2023, 1:06 a.m.