relabel_states relabel the states of a segmentation/clustering output. This allows merging different states into the same if for instance several of the model states represent the same behavioural states.

relabel_states(mode.segclust, newlabel, ncluster, nseg, order = TRUE)

Arguments

mode.segclust

segclust output

newlabel

a vector with the new names ordered, corresponding to state_ordered

ncluster

the number of cluster for which you want relabeling

nseg

the number of segment for which you want relabeling

order

boolean, whether this changes the ordered states or not. FALSE value obsolete for now

Value

a segmentation object with state names changed for the segmentation specified by ncluster and nseg