make_tree_ob: Initialize Tree Object for Macroevolution Simulation

Description Usage Arguments Value

View source: R/macro_sim.R

Description

Initializes an object used by the macroevolutionary simulation to store data about species, their relationships, and their population sizes and trait values

Usage

1
2
make_tree_ob(b_rate = 0.001, init_traits, e_var, init_Ns, trait_hist = TRUE,
  save_tree = TRUE)

Arguments

b_rate

Pure birth rate for new species, here just to get first branching;

init_traits

Vector of initial trait values of length n_trait, where n_trait is the number of traits to be simulated

e_var

Vector of gaussian variances determining rate of evolution along branches; of length n_trait; This is the Brownian motion rate parameter

Value

Initialized object with macroevolutionary simulation setup


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