clusterRows: Cluster rows of a matrix

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Cluster rows of a matrix-like object with a variety of algorithms.

Usage

1
clusterRows(x, BLUSPARAM, full = FALSE)

Arguments

x

A numeric matrix-like object where rows represent observations and columns represent variables.

BLUSPARAM

A BlusterParam object specifying the algorithm to use.

full

Logical scalar indicating whether the full clustering statistics should be returned for each method.

Details

This generic allows users to write agile code that can use a variety of clustering algorithms. By simply changing BLUSPARAM, we can tune the clustering procedure in analysis workflows and package functions.

Value

By default, a factor of length equal to nrow(x) containing cluster assignments for each row of x.

If full=TRUE, a list is returned containing clusters, a factor as described above; and objects, an arbitrary object containing algorithm-specific statistics or intermediate objects.

Author(s)

Aaron Lun

See Also

HclustParam, KmeansParam and NNGraphParam for some examples of values for BLUSPARAM.

Examples

1
2
3
4
5

bluster documentation built on Nov. 8, 2020, 8:29 p.m.