timedsequences-class: Class "timedsequences" - Collections of Sequences with Timing...

timedsequences-classR Documentation

Class "timedsequences" — Collections of Sequences with Timing Information

Description

Represents a collection of (observed) sequences and the associated timing information.

Objects from the Class

Typically, objects are created by coercion from an object of class transactions.

Objects can also be created by calls of the form new("timedsequences", ...).

Slots

time:

an object of class ngCMatrix" containing a sparse representation of the event times of the elements of the sequences. note that the storage layout is the same as for slot data.

timeInfo:

a data frame containing the set of time identifiers (column eventID) and possibly distinct labels.

elements:

inherited from class sequences.

data:

inherited from class sequences.

sequenceInfo:

inherited from class sequences.

quality:

inherited from class sequences, usually empty.

Extends

Class "sequences", directly. Class "associations", by class "sequences", distance 2.

Methods

coerce

signature(from = "transactions", to = "timedsequences")

coerce

signature(from = "timedsequences", to = "transactions")

c

signature(x = "timedsequences")

dim

signature(x = "timedsequences")

labels

signature(object = "timedsequences")

LIST

signature(x = "timedsequences")

inspect

signature(x = "timedsequences")

show

signature(object = "timedsequences")

summary

signature(object = "timedsequences")

timeFrequency

signature(x = "timedsequences")

timeInfo<-

signature(object = "timedsequences")

timeInfo

signature(object = "timedsequences")

timesets

signature(object = "timedsequences")

times

signature(x = "timedsequences")

timesets

signature(x = "timedsequences"); returns a collection of sequences of event times as an object of class itemMatrix.

timeTable

signature(x = "timedsequences")

Note

The temporal information is taken from components sequenceID and eventID of transactionInfo. It may be either on an ordinal or metric scale. The former is always assumed if column eventID is a factor.

Note that a sequence must not contain two or more events with the same eventID.

Coercion from an object of class sequences is not provided as this class does not contain timing information.

Author(s)

Christian Buchta

See Also

Class itemMatrix, transactions, sequences.

Examples

## use example data
data(zaki)

## coerce
z <- as(zaki, "timedsequences")
z

## get time sequences
summary(timesets(z))

## coerce back
as(z, "transactions")

arulesSequences documentation built on Sept. 11, 2024, 9:35 p.m.