BSkyKMeans | R Documentation |
Performs K-means clustering
BSkyKMeans(
vars,
centers,
iter.max = 10,
num.seeds = 10,
storeClusterInDataset = FALSE,
varNameForCluster = "",
dataset,
excludeEnvPrefix = FALSE
)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.