getPam | R Documentation |
pam
Extracts an object of class pam
as described in ?cluster::pam
.
getPam(object, ...)
## S4 method for signature 'Clustering'
getPam(object, k, method_pam = "euclidean", stop_if_null = TRUE)
## S4 method for signature 'Analysis'
getPam(object, k, method_pam = "euclidean", stop_if_null = TRUE)
## S4 method for signature 'ClusteringPam'
getPam(object, k, method_pam = "euclidean", stop_if_null = TRUE)
object |
Any object for whose class a method has been defined. |
k |
Numeric value. Denotes the number of clusters. Must be bigger than 1. Must not be bigger than the number of observations of the data set. |
stop_if_null |
Logical value. If TRUE and the function does not find the object to extract an informative error is raised. Else the empty value - usually NULL - is returned. |
An object of class pam
.
getClusteringPam()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.