calc.centros {discoveR}R Documentation

Calculation of the center of clusters

Description

Calculation of the center of clusters

Usage

calc.centros(data, clusters)

Arguments

data

a data.frame object.

clusters

a vector specifying the cluster of each individual.

Value

list

Author(s)

Diego Jimenez <diego.jimenez@promidat.com>

Examples

clusters <- factor(kmeans(iris[, -5], 3)$cluster)
calc.centros(iris[, -5], clusters)


[Package discoveR version 3.1.2 Index]