Learn R Programming

ggalign (version 1.0.1)

order2: Ordering Permutation

Description

order2 returns a permutation which rearranges its first argument into ascending order.

Usage

order2(x)

# S3 method for hclust order2(x)

# S3 method for dendrogram order2(x)

# S3 method for ser_permutation_vector order2(x)

# S3 method for ser_permutation order2(x)

# S3 method for phylo order2(x)

# S3 method for memo_weights order2(x)

Value

An integer vector unless any of the inputs has 2^31 or more elements, when it is a double vector.

Arguments

x

Any objects can be extracting ordering.

Examples

Run this code
order2(hclust2(matrix(rnorm(100L), nrow = 10L)))

Run the code above in your browser using DataLab