K-Means Clustering in R – Predicting Cluster for New Object

clustering

I used my training dataset to fit cluster using kmenas function

fit <- kmeans(ca.data, 2);

How can I use fit object to predict cluster membership in a new dataset?

Thanks

Best Answer

One of your options is to use cl_predict from the cluepackage (note: I found this through googling "kmeans R predict").

Related Question