order_groupids: Function to replace the ids of the group without forgetting...

View source: R/functions_utility.R

order_groupidsR Documentation

Function to replace the ids of the group without forgetting an id and put in the first appearance order for example: ⁠[2 1 1 4 2]⁠ becomes ⁠[1 2 2 3 1]⁠

Description

Function to replace the ids of the group without forgetting an id and put in the first appearance order for example: ⁠[2 1 1 4 2]⁠ becomes ⁠[1 2 2 3 1]⁠

Usage

order_groupids(partition)

Arguments

partition

observed partition

Value

a vector (partition)


ERPM documentation built on May 29, 2024, 10:05 a.m.