upper {protoshiny} | R Documentation |
Get the upper cut of a protoclust object
Description
Gets the upper part of the tree when you cut at height h (or alternately to have k leaves). Returns a valid protoclust object. This new tree has a different indexing from the original tree. i.original can be used to recover the old indexing and merge.id indicates for each leaf of new tree that had been an interior node, the merge.id of it.
Usage
upper(hc, h = NULL, k = NULL)
Arguments
hc |
protoclust object |
h |
cut height |
k |
number of leaves that upper cut should have |
Value
- hc
protoclust object representing the upper cut
- i.original
index of each element in original tree
- merge.id.leaf
merge.id from original tree of each leaf
- merge.id.interior
merge.id from original tree of each interior node
- h
cut height
- n.original
number of objects in original tree
[Package protoshiny version 0.1.0 Index]