relabel_states: Relabel states of a segmentation/clustering output

View source: R/function_prepare.R

relabel_statesR 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


segclust2d documentation built on Aug. 21, 2023, 9:10 a.m.