Usage
ppam(x, k, medoids = NULL, is_dist = inherits(x, "dist"), cluster.only = FALSE, do.swap = TRUE, trace.lev = 0)
Arguments
x
input data, either a 2D array or an ff object
k
positive integer, indicating for the number of clusters
medoids
vector, with the initial 'k' medoids or NULL to let the
algorithm select the initial medoids
is_dist
boolean, whether the input data is a distance or
dissimilarity matrix or a symmetric matrix
cluster.only
boolean, whether only the clustering is computed and
returned
do.swap
boolean, whether the swap phase of the algorithm is
required
trace.lev
positive integer for the level of details returned for
diagnostics