addClusterVarsPam: Add PAM cluster variables

addClusterVarsPamR Documentation

Add PAM cluster variables

Description

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

Usage

addClusterVarsPam(object, ...)

## S4 method for signature 'Analysis'
addClusterVarsPam(
  object,
  ks,
  methods_pam = "euclidean",
  prefix = "",
  naming = "{method_pam}_k{k}",
  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.

Details

Iterates over all possible combinations of the arguments ks and methods_pam and adds the corresponding grouping variables to the objects data. Cluster variables are named corresponding to the input of arguments naming.


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