update_br_lens: Function to Update Branch-lengths (and Traits) in...

Description Usage Arguments Value

View source: R/macro_sim.R

Description

Updates branch-length by adding to time to every branch; also updates trait values using Brownian motion simulation of the same time period. This is used at the beginning of the simulation to setup the first split of two species, and to grow branches within the main loop (with no trait evolution).

Usage

1
update_br_lens(tree_ob, add_br_len, e_var = NULL)

Arguments

tree_ob

The simulation object to update

add_br_len

How much branch-length should be added (in units of simulation time)

e_var

Vector of evolutionary rates of length n_trait, where n_trait is the number of traits being simulated

Value

An updated simulation object


rdinnager/nichefillr documentation built on Dec. 3, 2019, 7:13 a.m.