Learn R Programming

longitudinalData (version 0.6.4)

ordered: ~ Function: ordered ~

Description

Given a Partition, ordered order its clusters letters according to the effectif of each clusters. The is meanly a "label changing".

Usage

ordered(x,...)

Arguments

x
[Partition)]: Partition to be ordered.
...
For compatibility only, no other arguments are accepted.

Value

  • An object of class Partition.

Details

Given a Partition, ordered order its clusters letters according to the effectif of each clusters. So A will be the cluster with be biggest frequency, then B, then C...

See Also

Partition

Examples

Run this code
### Small partition
smallPart <- partition(clusters=c("A","B","A","C","C","C"),nbClusters=3)


### Same partition but ordered
ordered(smallPart)

Run the code above in your browser using DataLab