Learn R Programming

mappeR (version 2.0.2)

get_clusters: Perform the clustering step in mapper

Description

This function processes the binned data and global distance matrix to return freshly clustered data.

Usage

get_clusters(bins, dists, clusterer)

Value

The output of clusterer applied to a list of distance matrices, which should be a list containing named vectors (one per bin), whose names are data point names and whose values are cluster labels.

Arguments

bins

A list containing "bins" of vectors of names of data points.

dists

A distance matrix containing pairwise distances between named data points.

clusterer

A function which accepts a list of distance matrices as input, and returns the results of clustering done on each distance matrix.