module2: module2

View source: R/module2.R

module2R Documentation

module2

Description

Module 2: Calculate Pre-pupal and Pupal Development Times. This function calculates the development times for the pre-pupal and pupal stages of the pine weevil.

Usage

module2(prep, today, stump_temp, params, t3, t4, j)

Arguments

prep

A numeric vector of length 'npop' containing the pre-pupal development times for each individual.

today

A single numeric value representing the current day.

stump_temp

A list containing stump temperature data.

params

A list containing various model parameters, such as threshold temperatures and time limits.

t3

A numeric vector of length 'npop' containing the required degree days for pre-pupal development for each individual.

t4

A numeric vector of length 'npop' containing the required degree days for pupal development for each individual.

j

A single numeric value representing the current iteration of the inner loop.

Value

A list containing updated values for various insect development times, including:

  • Current day (today).

  • Pre-pupal development times (prep).

  • Completion status for pupal development (cpupal).


Alessandra23/pineR documentation built on Aug. 26, 2023, 8 a.m.