create_spawn_hab: create spawning habitat

View source: R/create_spawn_hab.R

create_spawn_habR Documentation

create spawning habitat

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

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

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 Oct. 17, 2023, 4:25 p.m.