cluster_corr_mat | R Documentation |
Cluster a matrix of correlated features
cluster_corr_mat(bin_corr_mat, hclust_method = "single", cut_height = 0)
bin_corr_mat |
a binary correlation matrix created by |
hclust_method |
the |
cut_height |
the cut height ( |
a named vector from stats::cutree()
. Each element is a cluster and
the name is a feature in that cluster.
Kelly Sovacool, sovacool@umich.edu
Pat Schloss, pschloss@umich.edu
## Not run:
corr_mat <- matrix(
data = c(1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1),
nrow = 4,
dimnames = list(
c("a", "b", "c", "d"),
c("a", "b", "c", "d")
)
)
corr_mat
cluster_corr_mat(corr_mat)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.