Apply the k-means clustering algorithm to group samples into k clusters.

clustering_kmeans(signatures, k)

Arguments

signatures

A spectral object built using the load_signature_files function.

k

K value to be used as number of clusters.

Value

An extended spectral object which includes the clustering indices of the signatures.

See also

Examples

data(signatures) clustered_signatures <- clustering_kmeans(signatures, k=3)