seqtab {TraMineR}R Documentation

Sequences frequency table

Description

Returns a frequency table for the sequences (frequency and percent).

Usage

 seqtab(seqdata, tlim=0, format="SPS")

Arguments

seqdata a sequence object as defined by the seqdef function.
tlim if tlim>0, shows only the 'tlim' most frequent sequences.
format the format for the sequences appearing as rownames in the output table. Default to SPS format, which yields shorter and more readable sequence representations. Alternatively, "STS" may be specified.

See Also

seqdplot.

Examples

## Loading the 'actcal' example data set
data(actcal)

## Defining a sequence object with data in columns 13 to 24
## (activity status from january to december 2000)
actcal.seq <- seqdef(actcal,13:24, informat='STS')

## 10 most frequent sequences in the data
seqtab(actcal.seq,10)

[Package TraMineR version 1.2-1 Index]