Skip to contents

This function relocates clusters in a dataset by centering each cluster and shifting it based on a given transformation matrix.

Usage

relocate_clusters(data, vert_mat)

Arguments

data

A tibble or data frame containing clustered data. It must have a `cluster` column indicating cluster membership.

vert_mat

A matrix specifying the translation vectors for each cluster. The number of rows must match the number of clusters.

Value

A tibble containing the relocated clusters with randomized row order.