View source: R/initialisation.R
ini_mixture | R Documentation |
Provide an initial kmeans allocation of the individuals/tasks in a dataset into a definite number of clusters, and return the associated mixture probabilities.
ini_mixture(data, k, name_clust = NULL, nstart = 50)
data |
A tibble or data frame. Required columns: |
k |
A number, indicating the number of clusters. |
name_clust |
A vector of characters. Each element should correspond to the name of one cluster. |
nstart |
A number of restart used in the underlying kmeans algorithm |
A tibble indicating for each ID
in which cluster it belongs
after a kmeans initialisation.
TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.