addCluster: Add an empty cluster to a metadata object

Description Usage Arguments Value Examples

View source: R/update.R

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)

bdlp documentation built on May 31, 2017, 5:07 a.m.