module5: module5

View source: R/module5.R

module5R Documentation

module5

Description

Module 5: Calculate Dispersal, Oviposition, and Egg Development. This function calculates the dispersal, oviposition, and egg development times of the pine weevil.

Usage

module5(params, today, maxtemp, stump_temp, t1, j)

Arguments

params

A list containing various model parameters, such as degree days for emergence and overwintering.

today

A single numeric value representing the current day.

maxtemp

A numeric vector containing the maximum daily temperatures.

stump_temp

A list containing stump temperature and cold data.

t1

A numeric vector of length 'npop' containing the required egg development times 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 dispersal, oviposition, and egg development times, including:

  • Current day (today).

  • Day of viable egg development (eggdev).

  • Index of selected viable egg (eggsel).

  • Vector of days for each egg (eggdays).

  • Vector of sorted indices for egg distribution (eggdist).

  • Vector of egg weights (eggwts).


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