R/get_cluster_cut.R

Defines functions get_cluster_cut

Documented in get_cluster_cut

#' Returns group information of specified number of cluster
#'
#' @param cor_list cor_list object
#' @param k number of clusters
#'
#' @return
#' @export
#'
#'
get_cluster_cut <- function(cor_list, k = 1) {
  
  # Return group information of cluster cut
  return(cor_list[["dend.table"]] %>% 
           dplyr::pull(as.character(k)))
  
}
nicohuttmann/pOmics documentation built on Sept. 21, 2022, 9:28 a.m.