c combines a collection of (timed) sequences or sequence rules
into a single object.
# S4 method for sequences c(x, ..., recursive = FALSE)
# S4 method for timedsequences c(x, ..., recursive = FALSE)
# S4 method for sequencerules c(x, ..., recursive = FALSE)
- an object.
- (a list of) further objects of the same class as
- a logical value specifying if the function should descend through lists.
unique an object of the same class as
c is similar to
rbind but with the added twist
that objects are internally conformed matching their item labels.
That is, an object based on the union of item labels is created.
For timed sequences event times are currently conformed as follows:
if the union of all labels can be cast to integer the labels are
sorted. Otherwise, labels not occurring in
x are appended.
The default setting does not allow any object to be of a class
x, i.e. the objects are not combined into a
## continue example example(ruleInduction, package = "arulesSequences") s <- c(s1, s2) s match(unique(s), s1) ## combine rules r <- c(r2, r2[1:2]) r match(unique(r), r2) ## combine timed sequences z <- as(zaki, "timedsequences") match(z, c(z, z[-1]))