View source: R/cluster_data_converters.R
split_clusters_to_list | R Documentation |
'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.
split_clusters_to_list(cluster)
cluster |
The output generated from the 'cluster()' function. |
a named 'list' of clusters.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.