addClusterVarsPam | R Documentation |
Adds PAM cluster results in form of grouping variables to the data of the input object.
addClusterVarsPam(object, ...)
## S4 method for signature 'Analysis'
addClusterVarsPam(
object,
ks,
methods_pam = "euclidean",
prefix = "",
naming = "{method_pam}_k{k}",
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. |
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.