Sort sequences in a sequence object
sort_sequences(x, sort_by = "start", sort_channel = 1, dist_method = "OM")
An stslist
object or a list of of such objects of same size,
typically created with TraMineR::seqdef()
or data_to_stslist()
.
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).
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).
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.