movement: Movement

View source: R/movement.R

movementR Documentation

Movement

Description

movement redistributes individuals between areas.

Usage

movement(t, cr, fdr, N, A, AMP = 0.1)

Arguments

t

temporary numeric value, the current time step.

cr

temporary numeric value, the current control rule.

fdr

temporary numeric value, the current final target density ratio.

N

numeric array, the number of individuals at each age, in each area, at each timestep, under each control rule, and for each estimate of natural mortality.

A

numeric value, the number of total areas in the model. Default value is 5.

AMP

numeric value, adult movement proportion, the fraction of individuals that move from one area to an adjacent area from one timestep to the next. Default value is 0.1.

Value

numeric array of updated N (numbers at age, area, timestep, control rule, and estimate of natural mortality)

Examples

n = 34; A = 5; TimeT = 70; CR = 6; FDR = 4
N <- array(rep(10, n*A*TimeT*CR*FDR), c(n, A, TimeT, CR, FDR))
movement(t = 1, cr = 1, fdr = 1, N, A , AMP = 0.1)

vquennessen/densityratio documentation built on Aug. 28, 2022, 5:36 p.m.