k_means: Implements a basic k-means algorithm

View source: R/k_means.R

k_meansR Documentation

Implements a basic k-means algorithm

Description

Implements a basic k-means algorithm

Usage

k_means(dat, k, pca = FALSE)

Arguments

dat

A data frame

k

The number of observations to use as starting points

pca

An option if you want to perform PCA before doing the k_means clustering

Value

A list with the cluster assignments and total sum of squares


Cal-Poly-Advanced-R/lab-7-clustering-methods-jhavstad8 documentation built on May 25, 2022, 2:44 a.m.