sim_multiple_rows: sim_multiple_rows: Simulate tree from multiple rows and apply...

Description Usage Arguments Value

View source: R/multiple_simulations.R

Description

Function runs multiple simulations. Can be specified by row. Also provides summary statistics like total fossil count, fossil count per interval, and origin time.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
sim_multiple_rows(
  data,
  extant,
  mus,
  lambdas,
  psis,
  intervals,
  by = FALSE,
  path = c()
)

Arguments

data

data frame

extant

Number of extant taxa

mus

Extinction rate

lambdas

Speciation rate

psis

Fossil sampling rate. Input as a vector

intervals

Vector of time intervals or time bins

by

Selects for specific rows. For example, by = 100 refers to sampling every 100th row. Defaults to FALSE. If FALSE, every row is sampled to produce a simulated phylo object.

path

Specify path to save

Value

summlist. An object describing useful summary statistics like total fossil count, fossil count per interval, and origin time


jaishimuku/WrightLab_FBD documentation built on July 17, 2020, 12:05 a.m.