Learn R Programming

ykmeans (version 1.0)

kmeansN2: kmeansN2

Description

run N times the number of clusters in kmeans of multiple

Usage

kmeansN2(x, variable.names = "x", target.name = "y", k.list = 3:6, cluster.name = "cluster", n = 100)

Arguments

x
A data.frame
variable.names
variable names
target.name
objective names
k.list
number of cluster
cluster.name
cluster variable name
n
number of trials

Value

A data.frame

Examples

Run this code
## Not run: 
# data(actData)
# act.kmn2 <- kmeansN2(actData, paste0("x",1:17),"y", 3:6)
# head(act.kmn2)
# ## End(Not run)

Run the code above in your browser using DataLab