kmeansDS: Conducts k-means clustering of a given data set

View source: R/kmeansDS.R

kmeansDSR Documentation

Conducts k-means clustering of a given data set

Description

This function is similar to the native R function 'kmeans' from stats

Usage

kmeansDS(df.name, clusters, iter.max, nstart, algorithm, trace = FALSE, seed)

Arguments

df.name

is a string character of the data set

clusters

specifies the number of clusters for the computation

iter.max

specifies the max. number of iterations allowed

nstart

relates to the number of random sets if clusters is a number and not a set of initial cluster centers

algorithm

refers to the algorithm of calculating the kmeans and can be either 'Hartigan-Wong', 'Lloyd', 'Forgy' or 'MacQueen'

trace

logical or Integer number tracing information on the progress of the algorithm

seed

is an integer for setSeed

Details

The function calls the server-side function kmeansDS that computes the k-means clustering of a data set (type 'data.frame' or 'matrix'). The function creates a new object on the server-side, which is of class 'kmeans'. The new object is named by the user using the newobj argument, otherwise it is named kmeans.newobj by default.

Value

the object specified by the newobj argument of ds.kmeans or default name kmeans.newobj

Author(s)

Florian Schwarz for the German Institute of Human Nutrition


FlorianSchw/dsClusterAnalysis documentation built on Feb. 8, 2025, 10:31 a.m.