Apply the k-means clustering algorithm to group samples into k clusters.
clustering_kmeans(signatures, k)
signatures | A spectral object built using the load_signature_files function. |
---|---|
k | K value to be used as number of clusters. |
An extended spectral object which includes the clustering indices of the signatures.
data(signatures) clustered_signatures <- clustering_kmeans(signatures, k=3)