Learn R Programming

psycho (version 0.4.91)

reorder_matrix: Reorder square matrix.

Description

Reorder square matrix.

Usage

reorder_matrix(mat, dmat = NULL)

Arguments

mat

A square matrix.

dmat

A square matrix with values to use as distance.

Examples

Run this code
# NOT RUN {
library(psycho)

r <- correlation(iris)
r <- r$values$r
r <- reorder_matrix(r)
# }

Run the code above in your browser using DataLab