define_spawn: define spawning areas

View source: R/define_spawn.R

define_spawnR Documentation

define spawning areas

Description

define_spawn is an auxiliary function called by create_spawn_hab to create the spawning habitat preferences.

Usage

define_spawn(coord = NULL, spwn = NULL, mult = 10)

Arguments

coord

is a List of Numeric vectors of the boundaries of the spawning areas, i.e. list(spwn1 = c(x1, x2, y1, y2), spwn2 = ...)

spwn

is a Numeric matrix of 1s fed in by create_spawn_hab

mult

is a Numeric of the attractiveness of the spawning areas

Value

a matrix of spawning preference

Examples

define_spawn(coord = list(spwn1 = c(2,4,2,4)), spwn = matrix(nc = 3, runif(9)), mult = 10)  

pdolder/MixFishSim documentation built on Oct. 17, 2023, 4:25 p.m.