rates_calculator: Colonization and extinction rates calculator for expressions.

Description Usage Arguments Value See Also Examples

View source: R/EnvironmentalFit.R

Description

rates_calculator Calculate colonization and extinction rates depending of their expressions.

Usage

1
rates_calculator(params, c_expression, e_expression, t)

Arguments

params

A vector with priors of the parameters in c_expression and e_expression.

c_expression

Expression for colonization.

e_expression

Expression for extinction.

t

Number of colonization and extinction pairs required.

Value

A matrix with the colonization and extinction rates.

See Also

all_environmental_fit

Examples

1
2
3
rates_calculator(c(-0.00497925, -0.01729602, 0.19006501,
0.93486956), expression(params[1] * idaho[[2]]$TOTAL.ppt[i] + params[3]),
expression(params[2] * idaho[[2]]$ANNUAL.temp[i] + params[4]), 21)

island documentation built on May 10, 2018, 9:04 a.m.