cluster_attrib: Mean, cluster size and center - cluster utilities
Mean, center of each cluster, number of objects in each cluster - informations retrieved from partitioned data
numeric matrix or
data.frame where columns correspond to variables and rows to
vector with information about cluster id the object is assigned to.
If vector is not integer type, it will be coerced with warning.
As a result function returns object of
list type which contains three objects with information about:
numeric vector which represents mean of given
numeric matrix where columns correspond to variables and rows to observations,
integer vector with information about size of each cluster.
Result of function is mostly used to compute following indicies:
# create "data" matrix
mx <- (0,4,2)
mx[2,1] = mx[3,2] = mx[4,1] = mx[4,2] = 1
# give information about cluster assignment
clust = ((1,1,2,2))