Learn R Programming

sequence (version 2.0)

mattrans: Creates of a succession matrix

Description

Creates a succession matrix of order 1 from an object of class sequence.

Usage

mattrans(x, dico = NULL, print = FALSE)

Arguments

x

Cseq: sequence

dico

character: list of items codes

print

logical: print the matrix. Default = FALSE

Value

a matrix: the succession matrix.

Details

Creates a succession, not a transition matrix. Integer numbers (frequencies) and not conditional probabilities. Function used by compseq

See Also

compseq ,matrcom

Examples

Run this code
# NOT RUN {
data(seriseq)
mattrans(unlist(seriseq))

# }

Run the code above in your browser using DataLab