Learn R Programming

kml3d (version 0.7)

ordered(Partition): ~ Function: ordered for Partition ~

Description

Given a Partition, ordered order its clusters letters according to the effectif of each clusters. It is meanly a "label changing". (The function ordered for ListClustering is describe here).

Usage

## S3 method for class 'Partition':
ordered(x)

Arguments

x
[Partition]: Partition to be ordered.

Value

  • An object of class Partition.

Author(s)

Christophe Genolini INSERM U669 / PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health Modal'X / Universite Paris Ouest-Nanterre- La Defense Contact author : genolini@u-paris10.fr

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...

References

Article "KmL: K-means for Longitudinal Data", in Computational Statistics, Volume 25, Issue 2 (2010), Page 317. Web site: http://christophe.genolini.free.fr/kml

See Also

Partition

Examples

Run this code
### Building a partition
smallPart <- partition(clusters=c("A","D","A","C","C","C"),nbClusters=4)

### Same partition but ordered, without the empty cluster
ordered(smallPart)

Run the code above in your browser using DataLab