Learn R Programming

arulesSequences (version 0.2-1)

sgCMatrix-class: Class "sgCMatrix" -- Sparse Ordered Lists of Symbols

Description

Sparse pseudo matrices in column-compressed form for storing ordered lists of symbols.

Arguments

Objects from the Class

Most frequently, an object is created upon creation of an object of class sequences or sequencerules.

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

See Also

Class sequences, timedsequences, sequencerules.

Examples

Run this code
## 3 example sequences
x <- list("01" = list(c("A","B"), "C"), 
          "02" = list("C"), 
	  "03" = list("B", "B"))

## uses paste
s <- as(x, "sgCMatrix")
s

##
dim(s)
dimnames(s)

Run the code above in your browser using DataLab