.RandomParent {TreeTools} | R Documentation |
Random parent vector
Description
Random parent vector
Usage
.RandomParent(n, seed = sample.int(2147483647L, 1L))
Arguments
n |
Integer specifying number of leaves. |
seed |
(Optional) Integer with which to seed Mersenne Twister random number generator in C++. |
Value
Integer vector corresponding to the "parent" entry of
tree[["edge"]]
, where the "child" entry, i.e. column 2, is numbered
sequentially from 1:n
.
Author(s)
Martin R. Smith (martin.smith@durham.ac.uk)
[Package TreeTools version 1.12.0 Index]