create.parameters: Helper for creating parameters

Description Usage Arguments Examples

Description

Structures the parameters into the correct format for use in the function community. If only the parameter n is passed, returns random parameters for Ds, Gs, and Rs.

Usage

1
create.parameters(Ds, Gs, Rs, dispersal, radius, stress, n)

Arguments

Ds

An array of death rates for the structured population, of length n

Gs

An array of growth rates for the structured population, of length n-1

Rs

Either the seed production rate of adults in the population, or an array of seed production rates, of length n.

dispersal

Dispersal distances

radius

Optional (use if there are any interactions). Either one radius of interactions or an array of interaction radiuses, of length n.

stress

Optional (use to create a stress gradient). An array of values of stress gradient slope. The full value will be added to death rate at the right of the plot, half value at the middle of the plot, and so on, proportionally.

n

Number of stages in the population

Examples

1
2
3
4
5
# create a sample parameters
create.parameters(n=3)

# structure parameters from arrays
create.parameters(Ds=c(10,5,2),Gs=c(2,2),Rs=20,radius=2)

Lobz/facilitation documentation built on May 7, 2019, 2:01 p.m.