centroids | R Documentation |
It evaluates the centroids of a partition with the weights in rw
centroids(df,cl,rw=rep(1/nrow(df),nrow(df)))
df |
object of class |
cl |
vector indicating the cluster of each element |
rw |
weight of the rows of df, by default the same |
Object of class list
with the following:
centroids |
class centroids |
weights |
class weights |
cr |
correlation ratios |
Campo Elias Pardo cepardot@unal.edu.co
data(iris)
centroids(iris[,-5],iris[,5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.