cluster_data: Clusters a table of data

Description Usage Arguments Value

View source: R/cluster.R

Description

This function clusters an input data.frame using the cluster::clara function

Usage

1
cluster_data(tab, col.names, k, ...)

Arguments

tab

The input data.frame

col.names

A vector specifying which columns of tab should be used for clustering

k

The desired number of clusters

...

Additional arguments to be passed to cluster::clara

Value

Returns tab, with an added column called groups, indicating cluster membership


ParkerICI/grappolo documentation built on April 8, 2021, 11:03 a.m.