powered by
Extract K-means model parameters from a kmeans object
# S3 method for kmeans extract_params(object, ...)
an object of class "kmeans"
further arguments passed to or from other methods
PFA as a list-of-lists that can be inserted into a cell or pool
model <- kmeans(x=iris[, 1:2], centers=3) extracted_params <- extract_params(model)
Run the code above in your browser using DataLab