Learn R Programming

COveR (version 1.0.1)

r2okm: r2okm clustering.

Description

Culster data with r2okm algorithm.

Usage

r2okm(x, centers, lambda = 0, nstart = 10, trace = FALSE, iter.max = 20)

Arguments

x

An data matrix.

centers

A number, number of cluster for clustering or pre init centers.

lambda

A number.

nstart

A number, number of execution to find the best result.

trace

A boolean, tracing information on the progress of the algorithm is produced.

iter.max

the maximum number of iterations allowed.

Examples

Run this code
# NOT RUN {
r2okm(iris[,-5], 3)
r2okm(iris[,-5], 3, .3)
r2okm(iris[,-5], iris[,-5], 1)
# }

Run the code above in your browser using DataLab