R: This function returns the ordering of a partitioning solution...
Reorder
R 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
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(ClusterStability)
Loading required package: Rcpp
Loading required package: clusterCrit
Loading required package: cluster
Loading required package: copula
Loading required package: WeightedCluster
Loading required package: TraMineR
TraMineR stable version 1.8-12 (Built: 2016-07-02)
Website: http://traminer.unige.ch
Please type 'citation("TraMineR")' for citation information.
This is WeightedCluster stable version 1.2 (Built: 2016-07-02)
To get the manuals, please run:
vignette("WeightedCluster") ## Complete manual in English
vignette("WeightedClusterFR") ## Complete manual in French
vignette("WeightedClusterPreview") ## Short preview in English
To cite WeightedCluster in publications please use:
Studer, Matthias (2013). WeightedCluster Library Manual: A practical guide to
creating typologies of trajectories in the social sciences with R.
LIVES Working Papers, 24. doi: 10.12682/lives.2296-1658.2013.24
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ClusterStability/Reorder.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Reorder
> ### Title: This function returns the ordering of a partitioning solution in
> ### ascending order.
> ### Aliases: Reorder
>
> ### ** Examples
>
> Reorder(c(1,3,4,4,3,1))
[1] 1 2 3 3 2 1
> # Expected : 1 2 3 3 2 1
>
>
>
>
>
> dev.off()
null device
1
>