Learn R Programming

arulesSequences (version 0.2-1)

c-methods: Combining Objects

Description

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

Usage

## S3 method for class 'sequences':
c(x, ..., recursive = FALSE)

## S3 method for class 'timedsequences': c(x, ..., recursive = FALSE)

## S3 method for class 'sequencerules': c(x, ..., recursive = FALSE)

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.

Value

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

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