get_groups_from_clusters: Assign features to groups

View source: R/corr_feats.R

get_groups_from_clustersR Documentation

Assign features to groups

Description

Assign features to groups

Usage

get_groups_from_clusters(cluster_ids)

Arguments

cluster_ids

named vector created by cluster_corr_mat(). Each element is a cluster and the name is a feature in that cluster.

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)

SchlossLab/mikropml documentation built on Aug. 24, 2023, 9:51 p.m.