Learn R Programming

aurelius (version 0.8.4)

extract_params.kmeans: extract_params.kmeans

Description

Extract K-means model parameters from a kmeans object

Usage

# S3 method for kmeans
extract_params(object, ...)

Arguments

object

an object of class "kmeans"

...

further arguments passed to or from other methods

Value

PFA as a list-of-lists that can be inserted into a cell or pool

Examples

Run this code
model <- kmeans(x=iris[, 1:2], centers=3)
extracted_params <- extract_params(model)

Run the code above in your browser using DataLab