Initialize slots of class Clustering
by partitioning the dataset into k
clusters.
Clusters(object, x, k)# S4 method for Clustering,matrix,numeric
Clusters(object, x, k)
An object of class Clustering
.
Numeric matrix of data.
Number of centers.
An object of class Clustering
Runs cclust
function from "flexclust" package with default settings i.e.
method = "kmeans", dist = "euclidean", and partition the dataset. Returns object of class Clustering
.