Description Usage Arguments Value Examples
If the cluster has children, they will be removed too.
1 | clust_remove(us, id, rm_root = FALSE)
|
us |
umapscan object |
id |
id of the cluster to remove |
rm_root |
if TRUE, also remove the root cluster node. Otherwise, only remove its children (should not be used directly, only for recursive call). |
An updated umapscan object.
1 2 3 4 5 6 7 8 9 | 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)
us <- clust_compute(us, parent = "3" ,minPts = 3, eps = 0.45)
clust_remove(us, "3_1")
us
clust_remove(us, "3")
us
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.