myclus: A clustering function

Description Usage Arguments Value Author(s) References Examples

View source: R/myclus.r

Description

Uses a hierarchical clustering to initiate a kmeans clustering.

Usage

1
myclus(data = swiss, k = 3)

Arguments

data

The data matrix

k

the number of clusters

Value

a list from function kmeans

Author(s)

From Ripley and Venables

References

Venables, W.N. and Ripley, B.D (2000) Modern Applied Statistics with S-PLUS, Springer

Examples

1
2
3
4
library(MASS)
data(swiss)
cl <- myclus(data = swiss, k = 3)
gap(swiss,cl$cluster)

SAGx documentation built on Nov. 8, 2020, 8:18 p.m.