reorder_clust-ClusterSet-method: Reorder the clusters from a ClusterSet

reorder_clust,ClusterSet-methodR Documentation

Reorder the clusters from a ClusterSet

Description

Reorder the clusters from a ClusterSet based on their names

Usage

## S4 method for signature 'ClusterSet'
reorder_clust(object, new_order = NULL)

Arguments

object

a ClusterSet object.

new_order

The names from the clusterSet in an alternative order.

Examples

# load a dataset
load_example_dataset('7871581/files/pbmc3k_medium_clusters')
clust_size(pbmc3k_medium_clusters)
new_obj <- reorder_clust(pbmc3k_medium_clusters, new_order = 15:1)
clust_size(new_obj)

dputhier/dbfmcl documentation built on Dec. 20, 2024, 1:59 a.m.