getKmeans | R Documentation |
kmeans
Extracts an object of class kmeans
as described in ?stats::kmeans
.
getKmeans(object, ...)
## S4 method for signature 'Clustering'
getKmeans(object, k, method_kmeans = "Hartigan-Wong", stop_if_null = TRUE)
## S4 method for signature 'Analysis'
getKmeans(object, k, method_kmeans = "Hartigan-Wong", stop_if_null = TRUE)
## S4 method for signature 'ClusteringKmeans'
getKmeans(object, k, method_kmeans = "Hartigan-Wong", 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 kmeans
.
getClusteringKmeans()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.