split_clusters_to_list: Split Clusters to List

View source: R/cluster_data_converters.R

split_clusters_to_listR Documentation

Split Clusters to List

Description

'split_clusters_to_list()' will extract clusters from the cluster generated 'data.frame'. It will then turn those clusters into a list. This allows users to more easily visualize their data.

Usage

split_clusters_to_list(cluster)

Arguments

cluster

The output generated from the 'cluster()' function.

Value

a named 'list' of clusters.

Examples


 cutoff <- 0.2
 count_table <- read_count(example_path("amazon.full.count_table"))
 distance_data <- read_dist(example_path("amazon_column.dist"),
                            count_table, cutoff, FALSE)
 cluster_results <- cluster(distance_data, cutoff, method = "opticlust")

 cluster_list <- split_clusters_to_list(cluster_results)

clustur documentation built on April 15, 2025, 1:33 a.m.