Learn R Programming

IPMpack (version 1.6)

generateDataDiscrete: Generates data including discrete stages (e.g. seedbank).

Description

Simulates growth, survival, fecundity to create a dataframe of the form required by the functions and methods used in the package, including three possible discrete stages: "dormant", "seedAge1", "seedOld"

Usage

generateDataDiscrete()

Arguments

Value

  • A dataframe with headings: - "size": continuous variable, indicating current size. - "sizeNext": continuous variable, indicating size in the next time step. - "surv": boolean, indicating whether individual survived or not to the next time-step, regardless of the stage the individual ends up in. - "fec": continuous variable, indicating fecundity, that is, per-capita sexual contributions. - "stage": character vector, containing names of the discrete stages in that time-step, or "continuous". - "stageNext": character vector, containing names of the "discrete" stages in the following time-step, or "continuous" size value. - "number": number of individuals moving between stages. "number" = 1 for all movements out of the "continuous" stage; "number" > 1 for all movements out of "discrete" stages. This allows the user to not need to have an individual line for every movement between discrete stages.

Details

This function allows the modeling of complex life cycles that incorporate continuous (e.g. size) as well as discrete (e.g., hibernation, seed bank, dormancy...) stages.

References

Ellner & Rees, 2006. Integral projection models for species with complex demography. The American Naturalist 167, p410-428.

See Also

generateDataStoch,generateData

Examples

Run this code
dff <- generateDataDiscrete()
head(dff)

Run the code above in your browser using DataLab