define_spawn: define spawning areas

Description Usage Arguments Value Examples

View source: R/define_spawn.R

Description

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

Usage

1
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

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

pdolder/MixFishSim documentation built on July 21, 2019, 1:06 a.m.