allbranches {MetChem} | R Documentation |
Cut a Tree into Groups of Data
Description
Cuts a tree as resulting from hclust
function, into groups (a.k.a. modules).
Usage
allbranches(hh,minlen=5)
Arguments
hh |
a tree as produced by |
minlen |
The minimum number of elements in each module. |
Value
A list contains vectors of module memberships.
See Also
cutree
, hclust
, clusters.detection
Examples
data(Metabolites)
data=Metabolites$readMet$concentration
hh=hclust(dist(data),method="ward.D")
res=allbranches(hh)
[Package MetChem version 0.4 Index]