Learn R Programming

rtemis (version 0.79)

u.PAM: Partitioning Around Medoids

Description

Perform PAM clustering using cluster::pam

Usage

u.PAM(x, k = 2, diss = FALSE, metric = "euclidean", do.swap = TRUE,
  verbose = TRUE, ...)

Arguments

x

Input matrix / data.frame

k

Integer: Number of clusters to get

diss

Logical: If TRUE, x should be a dist or dissimilarity matrix. Otherwise, x should be a matrix of cases by features. Default = FALSE

metric

String: Dissimilarity metric to be used. Options: 'euclidean', 'manhattan'

do.swap

Logical: If TRUE, perform the swap phase (See cluster::pam), as in the original PAM algorithm. This is computationally intensive and can be skipped. Default = TRUE

verbose

Logical: If TRUE, print messages to screen

...

Additional parameters to be passed to cluster::pam

See Also

Other Clustering: u.CMEANS, u.EMC, u.H2OKMEANS, u.HARDCL, u.HOPACH, u.KMEANS, u.NGAS, u.PAMK, u.SPEC