relabel_states {segclust2d}R Documentation

Relabel states of a segmentation/clustering output

Description

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.

Usage

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


[Package segclust2d version 0.3.3 Index]