pam_clust {ICSClust} | R Documentation |
Partitioning Around Medoids clustering
Description
Wrapper for performing Partitioning Around Medoids clustering from
cluster::pam()
.
Usage
pam_clust(X, k, clusters_only = FALSE, ...)
Arguments
X |
a numeric matrix or data frame of the data. It corresponds to the
argument |
k |
the number of clusters searched for. It corresponds to the argument
|
clusters_only |
boolean. If |
... |
other arguments to pass to the |
Value
If clusters_only
is TRUE
a vector of the new partition
of the data is returned, i.e a vector of integers (from 1:k
)
indicating the cluster to which each observation is allocated.
0 indicates trimmed observations.
Otherwise a list is returned with the following components:
clust_method |
the name of the clustering method, i.e "clara_pam". |
clusters |
the vector of the new partition of the data, i.e a vector of
integers (from |
... |
an object of class |
.
Author(s)
Aurore Archimbaud
See Also
Examples
pam_clust(iris[,1:4], k = 3, clusters_only = TRUE)