clust_rename: Rename an umapscan cluster identifier

Description Usage Arguments Value See Also Examples

View source: R/clustering.R

Description

Rename an umapscan cluster identifier

Usage

1
clust_rename(us, old, new)

Arguments

us

umapscan object

old

current cluster identifier

new

new cluster identifier

Value

An updated umapscan object (invisibly). If two clusters have the same identifier after renaming, they are merged together.

See Also

clust_label()

Examples

1
2
3
4
5
6
library(dplyr)
iris_num <- iris %>% select_if(is.numeric)
us <- new_umapscan(iris_num, n_neighbors = 25, min_dist = 0.1, seed = 1337)
us <- clust_compute(us, minPts = 3, eps = 0.5)
clust_rename(us, "1", "Cluster 1")
us

juba/umapscan documentation built on Aug. 29, 2020, 7:31 a.m.