model2df: model2df

Description Usage Arguments Value Examples

View source: R/utils.R

Description

model2df

Usage

1
model2df(model, gather = TRUE, rho = 1)

Arguments

model

an object of class "ACDC"

gather

boolean. Whether to return wide or long data frame

rho

the sampling fraction at the present. Used to calculate the pulled speciation rate

Value

a data frame

Examples

1
2
3
4
5
6
lambda <- function(t) 2.0 + sin(0.8*t)
mu <- function(t) 1.5 + exp(0.15*t)
times <- seq(from = 0, to = 4, length.out = 1000)
model <- create.model( lambda, mu, times = times)

model2df(model)

ACDC documentation built on Jan. 13, 2022, 1:08 a.m.