Reorder: This function returns the ordering of a partitioning solution...

View source: R/RcppExports.R

ReorderR Documentation

This function returns the ordering of a partitioning solution in ascending order.

Description

This function returns the ordered partition of a set of numbers in ascending order and reorderd to start at one. This is an auxiliary function.

Usage

Reorder(data)

Arguments

data

vector of partition numbers to reorder.

Value

A vector of ordered partition numbers for this data.

Examples

  Reorder(c(1,3,4,4,3,1))
  # Expected : 1 2 3 3 2 1

ClusterStability documentation built on March 31, 2023, 9:40 p.m.