clsReNum: Re-number TURN-RES Clustering in line with clsMR Object

Description Usage Arguments Details Value Author(s) Examples

Description

Due to the random order of traversal in the TURN-RES algorithm (see clsTurnRes) and the cumulative nature of the clsMRes function, clusters will be labelled differently between the clsMR and cTurn objects. In order to facilitate effective inspection of the hierarchy in the clsMR object, this helper function re-numbers the cTurn object to match the clsMR object.

Usage

1
clsReNum(x, y)

Arguments

x

a cTurn object. This is the object to be re-numbered.

y

a clsMR object. This is the object to extract the desired numeration from.

Details

Naturally the resolution parameter in x must match a resolution in the clsMR object, otherwise there is no like-for-like clustering to match to.

Value

An object of class cTurn. This will be the same object as x, but with the $cluster vector re-numbered.

Author(s)

Alex Bird, alex.bird@boots.co.uk

Examples

1
2
x = rnorm(30,0,1);
mean(x) #approx 0.5. Nothing to do with this!

ornithos/nectr documentation built on May 24, 2019, 3:57 p.m.