k_means: Implements naive k means algorithm (optionally for first two...

Description Usage Arguments Value

View source: R/k_means.R

Description

Implements naive k means algorithm (optionally for first two principle componenets of a dataset)

Usage

1
k_means(dat, nk, pca2 = F)

Arguments

dat

dataframe to perform clustering on

nk

number of clusters

pca2

boolean whether or not to use pca

Value

A list object with groups by row, ss within, ss between, sstotal


tciven/clust431 documentation built on Sept. 7, 2020, 1:13 p.m.