create_spawn_hab: create spawning habitat

Description Usage Arguments Value Examples

View source: R/create_spawn_hab.R

Description

create_spawn_hab modifies the habitat preference maps created by create_hab to account for spawning habitat preference - can be used as a substitute during spawning periods.

Usage

1
create_spawn_hab(hab = hab, spwnareas = NULL, mult = 10)

Arguments

hab

is the habitat preference for the population

spwnareas

is a list of Numeric vectors with the West, East, South and North dimensions of the spawning areas, in the form list(spwn1 = c(x1, x2, y1, y2)

mult

is a Numeric with the attractiveness of the spawning area (a multiplier)

Value

is the new habitat preference, taking account of the spawning area

Examples

1
2
create_spawn_hab(hab = matrix(nc = 100, runif(100 *
100)), spwnareas = list(spwn1 = c(20, 30, 50, 60)), mult = 10)

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