impimp_event {impimp} | R Documentation |
Imprecise Events
Description
Helper function to allow the generation of a set of events as cartesian product.
Usage
impimp_event(..., isEventList = FALSE)
is.impimp_event(x)
Arguments
... |
these arguments are of the form |
isEventList |
logical; if |
x |
object to test for class |
Value
A object of class "impimp_event"
as a list of lists,
where each sublist contains one point in the cartesian product,
spanned by the input values and variables.
Note
There is no plausibility check on whether the supplied varnames are actually contained in the data.frame for which the resulting impimp_event object is later used for.
See Also
Examples
## underlying data set: x1: 1:6, x2: 1:10
## subspace, requiring: x1 == 1 & ((x2 == 1 ) | (x2 == 2))
impimp_event(x1 = 1, x2 = c(1,2))
## subsapce containing all points whitin the Cartesian
## product of (x1 =) {1,2,3,6} x {5,8} (= x2)
# via ... argument
impimp_event(x1 = c(1:3,6), x2 = c(5,8))
# via EVENTLIST
impimp_event(list(x1 = c(1:3,6), x2 = c(5,8)),
isEventList = TRUE)