cutreeDS: Cuts the tree of a hclust object

View source: R/cutreeDS.R

cutreeDSR Documentation

Cuts the tree of a hclust object

Description

This function is similar to the native R function from stats

Usage

cutreeDS(tree, k = NULL, h = NULL)

Arguments

tree

is a string character specifying the name of the hclust object

k

specifies the number of clusters in which the tree should be cut

h

specifies the height of a tree at which the tree should be cut

Details

The function computes the clusters for a given number of clusters k or height h of the tree, and assigns the new object to the server-side. The new object is named by the user using the newobj argument, otherwise it is named cutree.newobj by default.

Value

the object specified by the newobj argument of ds.cutree or default name cutree.newobj

Author(s)

Florian Schwarz for the German Institute of Human Nutrition


FlorianSchw/dsClusterAnalysis documentation built on Feb. 8, 2025, 10:31 a.m.