1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cor_cophenetic.R
\name{sort_dist_mat}
\alias{sort_dist_mat}
\title{Sorts a distance matrix by rows and columns names}
\usage{
sort_dist_mat(dist_mat, by_rows = TRUE, by_cols = TRUE, ...)
}
\arguments{
\item{dist_mat}{a distance matrix.}
\item{by_rows}{logical (TRUE). Sort the distance matrix by rows?}
\item{by_cols}{logical (TRUE). Sort the distance matrix by columns?}
\item{...}{Ignored.}
}
\value{
A distance matrix (after sorting)
}
\description{
Sorts a distance matrix by the names of the rows and columns.
}
\seealso{
\link{dist}, \link{cor_cophenetic}
}
|