addClusterVarsHclust: Add hierarchical cluster variables

addClusterVarsHclustR Documentation

Add hierarchical cluster variables

Description

Adds hierarchical cluster results in form of grouping variables to the data of the input object.

Usage

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
)

Arguments

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.

Details

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.


kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.