k_means: Our implementation of the k-means algorithm

Description Usage Arguments Value

View source: R/clustering.R

Description

Given an data matrix x, samples are clustered into a given number of groups.

Usage

1
k_means(x, centers = 5)

Arguments

x

numeric matrix of data, where rows are samples

centers

the number of groups

Value

vector of integers indicating the group allocations


g-l-mansell/RcppRidge documentation built on Dec. 20, 2021, 9:43 a.m.