Learn R Programming

⚠️There's a newer version (1.3.3) of this package.Take me there.

ClusterR

The ClusterR package consists of Gaussian mixture models, k-means, mini-batch-kmeans and k-medoids clustering algorithms with the option to plot, validate, predict (new data) and find the optimal number of clusters. The package takes advantage of 'RcppArmadillo' to speed up the computationally intensive parts of the functions. More details on the functionality of ClusterR can be found in the package Vignette. ClusterR can be installed, currently, in the following OS's: Linux, Mac and Windows.

To install the package from CRAN use,


install.packages("ClusterR")

and to download the latest version from Github use the install_github function of the devtools package,


devtools::install_github('mlampros/ClusterR')

Use the following link to report bugs/issues,

https://github.com/mlampros/ClusterR/issues

Copy Link

Version

Install

install.packages('ClusterR')

Monthly Downloads

4,570

Version

1.0.6

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Lampros Mouselimis

Last Published

August 3rd, 2017

Functions in ClusterR (1.0.6)

Clara_Medoids

Clustering large applications
Cluster_Medoids

Partitioning around medoids
Optimal_Clusters_Medoids

Optimal number of Clusters for the partitioning around Medoids functions
Silhouette_Dissimilarity_Plot

Plot of silhouette widths or dissimilarities
GMM

Gaussian Mixture Model clustering
KMeans_arma

k-means using the Armadillo library
KMeans_rcpp

k-means using RcppArmadillo
MiniBatchKmeans

Mini-batch-k-means using RcppArmadillo
Optimal_Clusters_GMM

Optimal number of Clusters for the gaussian mixture models
Optimal_Clusters_KMeans

Optimal number of Clusters for k-means
distance_matrix

Distance matrix calculation
entropy_formula

entropy formula (used in external_validation function)
soybean

The soybean (large) data set from the UCI repository
predict_GMM

Prediction function for a Gaussian Mixture Model object
predict_KMeans

Prediction function for the k-means
external_validation

external clustering validation
function_interactive

Interactive function for consecutive plots ( using dissimilarities or the silhouette widths of the observations )
tryCatch_KMEANS_arma

tryCatch function to prevent armadillo errors in KMEANS_arma
center_scale

Function to scale and/or center the data
dietary_survey_IBS

Synthetic data using a dietary survey of patients with irritable bowel syndrome (IBS)
predict_MBatchKMeans

Prediction function for Mini-Batch-k-means
predict_Medoids

Predictions for the Medoid functions
mushroom

The mushroom data
plot_2d

2-dimensional plots
tryCatch_GMM

tryCatch function to prevent armadillo errors
tryCatch_optimal_clust_GMM

tryCatch function to prevent armadillo errors in GMM_arma_AIC_BIC