Learn R Programming

COveR (version 1.0.1)

r1okm: r1okm clustering.

Description

Culster data with r1okm algorithm.

Usage

r1okm(x, centers, alpha = 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.

alpha

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 {
r1okm(iris[,-5], 3)
r1okm(iris[,-5], 3, -0.5)
r1okm(iris[,-5], iris[,-5], 1)
# }

Run the code above in your browser using DataLab