powered by
Perform k-means clustering analysis on the dataset.
kmeans_clustering(dataset, num.clusters, type = "samples")
list representing the dataset from a metabolomics experiment.
the number of clusters.
a string indicating if k-means will be performed on samples ("samples") or on variables ("variables")
An object of class kmeans with the clustering results.
# NOT RUN { ## Example of kmeans clustering library(specmine.datasets) data(cachexia) kmeans.result = kmeans_clustering(cachexia, num.clusters = 4, type = "samples") # }
Run the code above in your browser using DataLab