deleteCluster: Delete a cluster from a metadata object

Description Usage Arguments Value Examples

View source: R/update.R

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)


bdlp documentation built on May 21, 2017, 4:09 a.m.
Search within the bdlp package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.