Learn R Programming

kkmeans (version 0.1.3)

cluster_new: Classify new data based on kkmeans result

Description

Given training data, test data, and kkmeans-results, get which partitions a new set of data belong to

Usage

cluster_new(test_data, train_data, train_result)

Value

A vector of class labels for test_data corresponding to the clusters present in train_result.

Arguments

test_data

the new data to be classified

train_data

the data to make classifications from

train_result

kkmeans result containing the result from classifying train_data