Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dot-RandomParent

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

Create, Modify and Analyse Phylogenetic Trees

v1.4.4
GPL (>= 3)
Authors
Martin R. Smith [aut, cre, cph] (<https://orcid.org/0000-0001-5660-1727>), Emmanuel Paradis [cph] (<https://orcid.org/0000-0003-3092-2199>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.