getPam: Obtain object of class 'pam'

getPamR Documentation

Obtain object of class pam

Description

Extracts an object of class pam as described in ?cluster::pam.

Usage

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)

Arguments

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.

Value

An object of class pam.

See Also

getClusteringPam()


kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.