Clusters {clusTransition}R Documentation

Clustering.

Description

Initialize slots of class Clustering by partitioning the dataset into k clusters.

Usage

Clusters(object, x, k)

## S4 method for signature 'Clustering,matrix,numeric'
Clusters(object, x, k)

Arguments

object

An object of class Clustering.

x

Numeric matrix of data.

k

Number of centers.

Details

Runs cclust function from "flexclust" package with default settings i.e. method = "kmeans", dist = "euclidean", and partition the dataset. Returns object of class Clustering.

Value

An object of class Clustering


[Package clusTransition version 1.0 Index]