group_clusters_by_size: Group a list of clusters by size

group_clusters_by_sizeR Documentation

Group a list of clusters by size

Description

Takes a list of clusters and groups them into named list by size

Usage

group_clusters_by_size(
  c_list,
  min_size = 1L,
  max_size = NA,
  include_empty_groups = F
)

Arguments

c_list

Named list of clusters - names will be preserved in groupings

min_size

Integer number representing smallest cluster size to keep

max_size

Integer number representing largest cluster size to keep

include_empty_groups

Boolean whether or not to include cluster sizes in return value for which there are no representatives

Value

Returns lists of clusters ( with their elements ) grouped by cluster size named as clusters_of_x where x = cluster size.


Benjamin-Vincent-Lab/binfotron documentation built on Oct. 1, 2024, 8:33 p.m.