Description Usage Arguments Value Examples
Creates clusters using the the specified method and assigns a cluster id to each cluster
1 |
data |
a data frame |
method |
the method to use to clusterize the data. Implemented methods are: 'k-means' for k-means algorithm. Requires parameter k. 'grid' for clustering based on grid partition. Requires parameter grid. 'AP' for affinity propagation algorithm. |
k |
parameter k |
grid |
a vector with the grid size for the 'grid' method |
... |
additional parameters for k-means, apcluster and apclusterK for 'k-means' method additional parameters see: https://stat.ethz.ch/R-manual/R-devel/library/stats/html/kmeans.html for 'apcluster'AP' method additional parameters see: https://cran.r-project.org/web/packages/apcluster/index.html |
A list with: clusters -> a numeric vector with the ids of the clusters centers -> a data frame with the centers of the clusters
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.