Delete a cluster from a metadata object

Share:

Description

Delete a cluster from a metadata object

Usage

1
deleteCluster(m, clnumber)

Arguments

m

A metadata object

clnumber

The cluster to delete

Value

A metadata object

Examples

1
2
3
4
5
6
require(MASS)
m <- new("metadata.metric", 
         clusters = list(c1 = list(n = 25, mu = c(4,5), Sigma=diag(1,2)),
                         c2 = list(n = 25, mu = c(-1,-2), Sigma=diag(1,2))),
         genfunc = mvrnorm)
m2 <- deleteCluster(m, 2)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.