k_means: K-Means Clustering

Description Usage Arguments Value

View source: R/k_means.R

Description

Preform k-means clustering on a dataset.

Usage

1
k_means(x, centers, PCA = F, plus.plus = F)

Arguments

x

numeric matrix of data, or an object that can be coerced to such a matrix (such as a numeric vector or a data frame with all numeric columns).

centers

the number of clusters k.

PCA

logical indicating if you want to preform a PCA transformation on the data.

plus.plus

logical indicating if you want to use the k-means++ algorithm for improved choosing of initial values.

Value

A list containing cluster means, clustering vector, and total SSE.


Cal-Poly-Advanced-R/lab-7-clustering-methods-shanealman documentation built on May 23, 2020, 12:33 a.m.