Description Usage Arguments Value Examples
Turn clsuter membershiip vector either from kmeans or cutree into list of vectors of cluster members
1 2 3 | clusters2list(vec)
kmeans2list(kmeans_result)
|
vec |
vector of cluster membership indices. |
kmeans_result |
object of class kmeans |
list of vectors of cluster members
1 2 3 4 | clusters2list(c(1, 1, 2, 3, 1, 2, 3))
clusters <- kmeans_table(israeli_survey, 1, k = 4)
kmeans2list(clusters)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.