get_cutoff: Get Cutoff

View source: R/cluster_object-getters.R

get_cutoffR Documentation

Get Cutoff

Description

Returns the distance cutoff of the cluster object from the 'cluster()' function

Usage

get_cutoff(cluster_data)

Arguments

cluster_data

The output from the 'cluster()' function.

Value

the cutoff value as a 'dbl'

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)
df_clusters <- cluster(distance_data, cutoff, method = "opticlust")
cutoff <- get_cutoff(df_clusters)

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