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)
segclust output
a vector with the new names ordered, corresponding to state_ordered
the number of cluster for which you want relabeling
the number of segment for which you want relabeling
boolean, whether this changes the ordered states or not. FALSE value obsolete for now
a segmentation object with state names changed for the segmentation specified by ncluster and nseg