Adrian Dusa's Miscellaneous
Internal Functions
Adrian Dusa's Miscellaneous
Extract information between quotes in a string
Extract information from a multi-value SOP/DNF expression
Generic function to change the structure of an object, function of the...
Cross platform scan/write clipboard
Coerce an atomic vector to numeric or integer, if possible
Generate all combinations of n numbers, taken k at a time
Set matrix row or column names
Check difference and / or (in)equality of numbers
Export an object to a file or a connection
Factorize Boolean expressions
Modified relevel() function
Inverts the values of a factor
Get the name of the object being used in a function call
Colors from the HCL spectrum
Evaluate an Expression in a Data Environment
Intersect expressions
Negate Boolean expressions
Count number of decimals
Numeric vectors
Overwrite an object in a given environment.
Calculates the permutations of a vector
Load and list objects from an .rda file
Recode a variable
Facilitate expression substitution
Replace text in a string
Functions to interpret and manupulate a SOP/DNF expression
Tilde operations
Try functions to capture warnings, errors and messages.
Evaluate an expression in a data environment
Contains functions used across packages 'DDIwR', 'QCA' and 'venn'. Interprets and translates, factorizes and negates SOP - Sum of Products expressions, for both binary and multi-value crisp sets, and extracts information (set names, set values) from those expressions. Other functions perform various other checks if possibly numeric (even if all numbers reside in a character vector) and coerce to numeric, or check if the numbers are whole. It also offers, among many others, a highly versatile recoding routine and some more flexible alternatives to the base functions 'with()' and 'within()'. SOP simplification functions in this package use related minimization from package 'QCA', which is recommended to be installed despite not being listed in the Imports field, due to circular dependency issues.