powered by
order2 returns a permutation which rearranges its first argument into ascending order.
order2
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)
# 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)
An integer vector unless any of the inputs has 2^31 or more elements, when it is a double vector.
2^31
Any objects can be extracting ordering.
order2(hclust2(matrix(rnorm(100L), nrow = 10L)))
Run the code above in your browser using DataLab