Learn R Programming

arulesSequences (version 0.2-31)

c-methods: Combining Objects

Description

c combines a collection of (timed) sequences or sequence rules into a single object.

Usage

# S4 method for sequences
c(x, ..., recursive = FALSE)

# S4 method for timedsequences c(x, ..., recursive = FALSE)

# S4 method for sequencerules c(x, ..., recursive = FALSE)

Value

For c and unique an object of the same class as x.

Arguments

x

an object.

...

(a list of) further objects of the same class as x

.

recursive

a logical value specifying if the function should descend through lists.

Author

Christian Buchta

See Also

Class sequences, timedsequences, sequencerules, method match.

Examples

Run this code
## 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[1], z[-1]))

Run the code above in your browser using DataLab