sort_sequences: Sort sequences in a sequence object

View source: R/sort_sequences.R

sort_sequencesR Documentation

Sort sequences in a sequence object

Description

Sort sequences in a sequence object

Usage

sort_sequences(x, sort_by = "start", sort_channel = 1, dist_method = "OM")

Arguments

x

An stslist object or a list of of such objects of same size, typically created with TraMineR::seqdef() or data_to_stslist().

sort_by

A character string specifying the sorting criterion. Options are "none" (no sorting), "start" (sort by the first state), "end" (sort by last state), and "mds" (sort by the multidimensional scaling).

sort_channel

An integer or character string specifying the channel to sort by (unless ⁠sort_by = "mds⁠ in which case all channels are used for defining the sorting).

dist_method

A character string specifying the distance method to use when sorting by the multidimensional scaling. Passed to TraMineR::seqdist(), or TraMineR::seqMD() in the multichannel case.


seqHMM documentation built on June 8, 2025, 10:16 a.m.