predict: Predict to which Cluster new data belongs

Description Usage Arguments Value Author(s) Examples

Description

Predict to which Cluster new data belongs

Usage

1
2
## S3 method for class '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.

Author(s)

Sandro Radovanovic sandro.radovanovic@gmail.com

Examples

1
2
3
4
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])

whiboclustering documentation built on May 2, 2019, 6:46 a.m.