addClusterVarsKmeans | R Documentation |
Adds kmeans cluster results in form of grouping variables to the data of the input object.
addClusterVarsKmeans(object, ...)
## S4 method for signature 'Analysis'
addClusterVarsKmeans(
object,
ks,
methods_kmeans = "Hartigan-Wong",
prefix = "",
naming = "{method_kmeans}_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_kmeans
and adds the corresponding grouping
variables to the objects data. Cluster variables are named corresponding to the input
of argument naming
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.