Learn R Programming

whiboclustering (version 0.1.2)

predict.whibo_cluster: Predict to which Cluster new data belongs

Description

Predict to which Cluster new data belongs

Usage

# S3 method for whibo_cluster
predict(object, data, ...)

Arguments

object

WhiBo Cluster model.

data

Data for which Cluster should be obtained.

...

None of those will be used.

Value

Vector of assignments.

Examples

Run this code
# NOT RUN {
data <- iris[1:100, 1:4] #Numerical data only and first 100 rows

model <- whibo_clustering(data = data, k = 3)
predict(object = model, data = iris[101:150, 1:4])

# }

Run the code above in your browser using DataLab