.RandomParent: Random parent vector
Description
Random parent vector
Usage
.RandomParent(n, seed = sample.int(2147483647L, 1L))
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
.
Arguments
- n
Integer specifying number of leaves.
- seed
(Optional) Integer with which to seed Mersenne Twister random
number generator in C++.