get_groups_from_clusters {mikropml} | R Documentation |
Assign features to groups
Description
Assign features to groups
Usage
get_groups_from_clusters(cluster_ids)
Arguments
cluster_ids |
named vector created by |
Value
a vector where each element is a group of correlated features
separated by pipes (|
)
Author(s)
Kelly Sovacool, sovacool@umich.edu
Examples
## 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)
[Package mikropml version 1.6.1 Index]