merge_partitions | R Documentation |
Merge flat disjoint clusterings whose pairwise ECS score is above a given threshold. The merging is done using a complete linkage approach.
merge_partitions(
partition_list,
ecs_thresh = 1,
order_logic = c("freq", "avg_agreement", "none"),
return_ecs_matrix = FALSE,
check_ties = TRUE
)
partition_list |
A list of flat disjoint membership vectors. |
ecs_thresh |
A numeric: the ecs threshold. |
order_logic |
Variable indicating the method of ordering the partitions. It can take these three values:
|
return_ecs_matrix |
A logical: if TRUE, the function will add the ECS matrix to the return list. Defaults to FALSE. |
check_ties |
A logical value that indicates whether to check for ties
in the highest frequency partitions or not. If TRUE, the function will put
at the first position the partition that has the highest similarity
with the other partitions. Defaults to |
a list of the merged partitions, together with their associated
ECC score. If return_ecs_matrix
is set to TRUE, the function will also
return the ECS matrix.
initial_list <- list(c(1, 1, 2), c(2, 2, 2), c("B", "B", "A"))
merge_partitions(initial_list, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.