dot-RandomParent: Random parent vector

.RandomParentR 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)


TreeTools documentation built on Sept. 11, 2024, 8:27 p.m.