init_env: Initialize abiotic environment.

Description Usage Arguments Details Value Examples

View source: R/init_env.R

Description

This function returns a list of vectors that define the external irradiance (L), DIN concentration (N), and prey concentration (X) to be used as subsequent inputs for a model simulation.

Usage

1
init_env(time, L, N, X)

Arguments

time

A vector of time steps at which the model should be evaluated (units=days) (e.g., seq(0, 365, 0.1))

L

A vector with length 3 defining external light (min, max, functional form (see details)). Units=mol photons m^-2 d^-1.

N

A vector with length 3 defining external DIN concentration (min, max, functional form (see details)). Units=mol N L^-1.

X

A vector with length 3 defining external prey concentration (min, max, functional form (see details)). Units=C-mol X L^-1.

Details

The options for the functional form of each environmental factor are:

Value

A list of 3 numeric vectors (each with length=length(time)) corresponding to light, DIN, and prey environmental forcing functions.

Examples

1
env1 <- init_env(time=seq(1,365,0.1), L=c(20,40,1), N=c(1e-7,1e-7,0), X=c(0,0,0))

jrcunning/coRal documentation built on March 24, 2021, 1:28 a.m.