
Assign new data to existing clusters without re-fitting
Source:R/cluster_model.R
predict.morie_cluster.RdAssign new data to existing clusters without re-fitting
Usage
# S3 method for class 'morie_cluster'
predict(object, newdata, ...)Examples
cl <- morie_cluster(iris[1:4], k = 3)
#> Warning: input has no row names; using positional labels
predict(cl, iris[1:5, 1:4])
#> 1 2 3 4 5
#> 2 2 2 2 2