sim_repr_gen: Simulate reproduction throughout a generation.

Description Usage Arguments Value

View source: R/sim.R

Description

Simulates an individual's reproductive output throughout a generation.

Usage

1
sim_repr_gen(tpc, tseq, surv, rpsp, pmin)

Arguments

tpc

An individual's thermal-performance curve (TPC)

tseq

A vector of temperature values which will also determine how many days conform a generation.

surv

A vector of survival values (0/1) in the format of the output of sim_surv_gen.

rpsp

Reproduction probability scaling parameter. Equivalent to the probability of reproduction at Pmax. Corresponds to the "lambda" parameter of a poisson distribution.

pmin

The percentage of Pmax corresponding to Pmin.

Value

A vector of integers determining offspring produced each day the individual survived.


ggcostoya/limon documentation built on April 27, 2021, 10:09 p.m.