Description Usage Arguments Value References See Also Examples
The input edits are separated into disjunct blocks, and simplified to
editmatrix
or editarray
where possible. Remaining
editsets
are separated into disjunct
editlists
.
1 | separate(E)
|
E |
An |
A list
where each element is either an editmatrix
, an editarray
or an object of class editlist
which cannot be simplified further.
M. van der Loo and De Jonge, E. (2012). Manipulation of conditional restrictions and error localization with the editrules package. Discussion paper 2012xx, Statistics Netherlands, The Hague (included with the package).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | E <- editset(expression(
x + y == z,
2*u + 0.5*v == 3*w,
w >= 0,
if ( x > 0 ) y > 0,
x >= 0,
y >= 0,
z >= 0,
A %in% letters[1:4],
B %in% letters[1:4],
C %in% c(TRUE,FALSE),
D %in% letters[5:8],
if ( A %in% c('a','b') ) y > 0,
if ( A == 'c' ) B %in% letters[1:3],
if ( !C == TRUE) D %in% c('e','f')
))
(L <- separate(E))
sapply(L,class)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.