addClusterVarsHclust | R Documentation |
Adds hierarchical cluster results in form of grouping variables to the data of the input object.
addClusterVarsHclust(object, ...)
## S4 method for signature 'Analysis'
addClusterVarsHclust(
object,
ks = NULL,
hs = NULL,
methods_dist = "euclidean",
methods_aggl = "Ward.D",
prefix = "",
naming_k = "{method_dist}_{method_aggl}{k}",
naming_h = "{method_dist}_{method_aggl}{h}",
overwrite = FALSE
)
object |
Any object for whose class a method has been defined. |
ks |
Numeric vector. Denotes all options for k-clusters. Values <1 are discarded. Is converted into an integer vector. |
hs |
Numeric vector. Denotes the heights at which the dendrogram is cut. |
Iterates over all possible combinations of the arguments ks
, hs
,
methods_dist
and methods_aggl
and adds the corresponding grouping
variables to the objects data. Cluster variables are named corresponding to the input
of arguments naming_k
and naming_h
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.