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 June 22, 2024, 9:27 a.m.