predict.kmeans {DeducerExtras}R Documentation

Applies cluster labels

Description

Applies cluster labels

Usage

## S3 method for class 'kmeans'
predict(object,data=NULL,...)
applyModel(object,data,...)

Arguments

object

A kmeans object

data

a dataset to apply the model to

...

Additional parameters

Value

predict returns a vector of cluster assignments. applyModel returns the data with a column of cluster assignments appended to it.


[Package DeducerExtras version 1.7 Index]