cluster_df: Re-orders a matrix by hierarchical clustering

View source: R/cluster.R

cluster_dfR Documentation

Re-orders a matrix by hierarchical clustering

Description

Re-orders a matrix by hierarchical clustering

Usage

cluster_df(
  df3,
  dist_method = "euclidean",
  link_method = "ward.D",
  clust.by.row = T
)

Arguments

df3

Numeric matrix or data frame

dist_method

The distance measure to be used. Accepts the same values as method parameter in ?dist.

link_method

The agglomeration/clustering method to be used. Accepts the same values as method parameter in ?hclust.

clust.by.row

Logical indicating whether to cluster by row, else columnwise.

Value

An ordered matrix based on hierarchical clustering


kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.