order_groupids function

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]

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]

order_groupids(partition)

Arguments

  • partition: observed partition

Returns

a vector (partition)

  • Maintainer: Marion Hoffman
  • License: GPL (>= 3)
  • Last published: 2024-05-10