k_function_internal: Internal function used to calculate carrying capacity within...

Description Usage Arguments Value Examples

View source: R/k_function_internal.R

Description

Internal function used to calculate carrying capacity within igp_sim()

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
k_function_internal(
  k_function,
  k_base,
  r_max,
  n_upstream,
  n_patch,
  k_c,
  k_min_exponent,
  k_max_exponent,
  river_network_structure,
  environment_value
)

Arguments

k_function

Character string, one of c("patches upstream", "environment", or NULL).

k_base

Numeric input scaling the carrying capacity. See details for more information.

r_max

Maximum reproductive rate of basal species, B

n_upstream

Vector of length = n_patch describing the number (n+1) of upstream patches. Terminal upstream patches have a value of 1.

n_patch

The number of total patches

k_c

constant (default = 10) used in k_n_upstream() when k_function = "patches upstream"

k_min_exponent

min exponent (default = 1.1) used in k_n_upstream() when k_function = "patches upstream"

k_max_exponent

min exponent (default = 1.35) used in k_n_upstream() when k_function = "patches upstream"

river_network_structure

Logical indicating if this is a branching river network TRUE or not FALSE.

environment_value

Vector of environmental values. Designed to take brnet() function output.

Value

carrying

Examples

1
k_function_internal(k_function, k_base, r_max, n_upstream, n_patch, k_c, k_min_exponent, k_max_exponent, river_network_structure, environment_value)

Jpomz/IGPtoy documentation built on Aug. 2, 2021, 5:28 a.m.