kmeansN: kmeansN

Description Usage Arguments Value Author(s) Examples

Description

N times run the k-means

Usage

1
2
kmeansN(x, k, variable.names = "x", target.name = "y", 
        cluster.name = "cluster", n = 100)

Arguments

x

A data.frame

k

number of cluster

variable.names

variable names

target.name

objective variable name

cluster.name

cluster variable name

n

number of trials

Value

A data.frame

Author(s)

Yohei Sato

Examples

1
2
3
4
5
6
## Not run: 
data(actData)
act.kmn <- kmeansN(actData, 3, paste0("x",1:17),"y")
table(act.kmn$cluster)

## End(Not run)

Example output

  1   2   3 
141 255 104 

ykmeans documentation built on May 2, 2019, 9:33 a.m.