order_groupids {ERPM}R 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)


[Package ERPM version 0.2.0 Index]