Learn R Programming

mdir (version 0.9.0)

findOrder: Find order

Description

Find the ordering of the rows of X based on a hierarchical clustering of X for linkage ``linkage`` and distance ``dist``.

Usage

findOrder(X, dist = "euclidean", linkage = "complete")

Value

The order of the rows of X based on a hierarchical clustering.

Arguments

X

Matrix.

dist

Distance used when defining a distance matrix of X.

linkage

Type of linkage used in the hierarchical clustering of X.

Examples

Run this code

N <- 100
X <- matrix(c(rnorm(N, 0, 1), rnorm(N, 3, 1)), ncol = 2, byrow = TRUE)
findOrder(X)

Run the code above in your browser using DataLab