View source: R/get_partition.R
get_partition | R Documentation |
To get the clusters memberships of the variables.
get_partition(resclv, K = NULL, type = "vector")
resclv |
: result of CLV(), CLV_kmeans(), LCLV(), CLV3W() or CLV3W_km() |
K |
: the number of clusters chosen (already defined if CLV_kmeans or CLV3W_kmeans is used) |
type |
: "vector" (by default) for output given as a vector of integers between 1 and K (with 0 for "kplusone" strategy), |
partition |
the group's membership for the variables, in a vector or matrix form. |
data(apples_sh) resclvX <- CLV(X = apples_sh$senso, method = "directional", sX = TRUE) parti4G<-get_partition(resclvX, K = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.