View source: R/find_central_clone.R
isolate_central_cluster_elements | R Documentation |
Takes pca scores or a correlation matrix ( as data.frame ) and uses it to determine the most representative element from each of a list of clusters. Clusters with 2 elements use ranks sent or random selection to determine centrality while clusters larger than 3 use the centrality_method
isolate_central_cluster_elements(
elements_data,
cluster_members,
element_ranks = NA,
max_depth = NA,
centrality_method = "max-depth"
)
elements_data |
A data.frame or matrix containing either elements x principle components ( as scores/x from PCA Analysis ) OR similarity scores of elements x elements |
cluster_members |
A named list of clusters with their elements |
element_ranks |
A named integer vector indicating the initial element rankings to be used for selection of best elements in clusters of length 2 |
max_depth |
An integer indicating the maximum number of Principle Components to use in determining best elements. Only used for PCA type centrality_methods |
centrality_method |
A character vector with strings specifying the method for selecting the most central feature of a cluster:
|
Returns original list of cluster_members with the most representative element for each named cluster
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.