seqfcheck {TraMineR}R Documentation

Check if sequences are in compressed format.

Description

Wether the sequence(s) are in compressed format is checked by counting the number of columns and searching for the '-' or ':' separator. The function returns the separator if it has been found in the data. If the data contains more than one column, the data is supposed to be in the extended format, and 'X' is returned, unless some states codes contain the '-' character (eg. states coded with negative integer values), in which case '-X' is returned.

Usage

 seqfcheck(seqdata)

Arguments

seqdata a vector, data frame or matrix containing sequence data.

See Also

seqconc seqdecomp.

Examples

data(actcal)
seqfcheck(actcal[,13:24])

[Package TraMineR version 1.0 Index]