predict.KMeans: 'predict.KMeans'

View source: R/variables.R

predict.KMeansR Documentation

predict.KMeans

Description

Predicts cluster membership for the entire sample passed into the original analysis (including missing and filtered values).

Usage

## S3 method for class 'KMeans'
predict(object, newdata = object$model, use.names = FALSE, ...)

Arguments

object

A KMeans object, or, cluster centers.

newdata

Optionally, a data frame in which to look for variables with which to predict. If omitted, the data used to fit the model is used.

use.names

Use names in centers to name levels in predicted output.

...

Additional arguments to pass to predict.lda. The default is to predict NA.


Displayr/flipCluster documentation built on Nov. 23, 2022, 4:20 a.m.