BSkyKMeans: K-Means Cluster

BSkyKMeansR Documentation

K-Means Cluster

Description

Performs K-means clustering

Usage

BSkyKMeans(
  vars,
  centers,
  iter.max = 10,
  num.seeds = 10,
  storeClusterInDataset = FALSE,
  varNameForCluster = "",
  dataset,
  excludeEnvPrefix = FALSE
)

Arguments

vars

The variables to analyze in a vector of form c('var1','var2'...)

centers

either the number of clusters, say k, or a set of initial (distinct) cluster centers. If a number, a random set of (distinct) rows in x is chosen as the initial centers.

iter.max

the maximum number of iterations allowed.

num.seeds

The number of different starting random seeds to use. Each random seed results in a different k-means solution.

storeClusterInDataset

Save the cluster assignments to the dataset

varNameForCluster

The variable names for the assigned clusters

dataset

The dataset to analyze


BlueSkyStatistics/BlueSky documentation built on April 14, 2025, 7:39 a.m.