powered by
kmeans example for using MLPACK with R.
mlKmeans(X, y)
data matrix.
number of clusters.
mlKmeans returns a list with cluster assignment:
mlKmeans
This is a kmeans example using RcppMLPACK. It uses the Kmeans method in MLPACK and integrates with R.
MLPACK project: http://www.mlpack.org/
# NOT RUN { data(trees, package="datasets") mlKmeans(t(trees),3) # }
Run the code above in your browser using DataLab