Description Usage Arguments Value Note Author(s) See Also Examples

`itemFrequency`

counts the number of distinct occurrences of items
or itemsets (elements) in a collection of sequences. That is, multiple
occurrences within a sequence are ignored.

`itemTable`

cross-tabulates the counts an item or itemset
occurs in a sequence.

`nitems`

computes the total number of distinct occurrences of items
or itemsets in a collection of sequences.

`dim`

retrieves the dimensions of an object of class
`sequences`

or `timedsequences`

.

`length`

retrieves the number of elements of a collection of
sequences or sequence rules.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ```
## S4 method for signature 'sequences'
itemFrequency(x, itemsets = FALSE, type = c("absolute", "relative"))
## S4 method for signature 'sequences'
itemTable(x, itemsets = FALSE)
## S4 method for signature 'sequences'
nitems(x, itemsets = FALSE)
## S4 method for signature 'sequences'
dim(x)
## S4 method for signature 'timedsequences'
dim(x)
## S4 method for signature 'sequences'
length(x)
## S4 method for signature 'sequencerules'
length(x)
``` |

`x` |
an object. |

`itemsets` |
a logical value specifying the type of count. |

`type` |
a string value specifying the scale of count. |

For `itemFrequency`

returns a vector of counts corresponding with
the reference set of distinct items or itemsets.

For `itemTable`

returns a table with the rownames corresponding
with the reference set of distinct items or itemsets.

For `nitems`

a scalar value.

For `dim`

and class `sequences`

a vector of length three
containing the number of sequences and the dimension of the reference
set of distinct itemsets. For class `timedsequences`

the fourth
element contains the number of distinct event times.

For `length`

a scalar value.

For efficiency reasons, the reference set of distinct itemsets can be larger than the set actually referenced by a collection of sequences. Thus, the counts of some items or itemsets may be zero.

Method `nitems`

is provided for efficiency; method `dim`

for
technical information.

For analysis of a set of rules use the accessors `lhs`

or `rhs`

, or coerce to sequences.

Christian Buchta

Class
`sequences`

,
`timedsequences`

,
method
`size`

,
`subset`

.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.