get_groups_from_clusters | R Documentation |
Assign features to groups
get_groups_from_clusters(cluster_ids)
cluster_ids |
named vector created by |
a vector where each element is a group of correlated features
separated by pipes (|
)
Kelly Sovacool, sovacool@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
get_groups_from_clusters(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.