Add an empty cluster to a metadata object

Share:

Description

Add an empty cluster to a metadata object

Usage

1

Arguments

m

A metadata object

Value

A metadata object with an empty additional cluster

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 <- addCluster(m)

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