Learn R Programming

editrules (version 2.2-0)

disjunct: Decouple a set of conditional edits

Description

An editset is transformed to a list of editsets which do not contain any conditional numeric/categorical edits anymore. Each editset has an extra attribute condition, which holds the series of assumptions made to decouple the original edits. This attribute will be printed when not NULL.

Usage

disjunct(E)

Arguments

Value

A list of editsets. Each element has an attribute 'condition' showing which conditions were assumed to derive the editset.

Details

At the moment this functionality is somewhat experimental and in- or output specification should be expected to change in coming releases.

Examples

Run this code
E <- editset(expression(
    x + y == z,
    if ( x > 0 ) y > 0,
    x >= 0,
    y >= 0,
    z >= 0,
    A %in% letters[1:4],
    B %in% letters[1:4],
    if (A %in% c('a','b')) y > 0,
    if (A == 'c' ) B %in% letters[1:3]
))

disjunct(E)

Run the code above in your browser using DataLab