Skip to contents

Predict cluster class for k-means cluster

Usage

# S3 method for class 'kmeans'
predict(object, newdata, method = c("classes", "centers"), ...)

Arguments

object

results of stats::kmeans().

newdata

data frame to make class predictions.

method

method used to make predictions.

...

currently not used.

Value

vector of predicted clusters.