initialLobsterGrid: This function simulates an arena (or grid) with lobsters in...

View source: R/initialLobsterGrid.R

initialLobsterGridR Documentation

This function simulates an arena (or grid) with lobsters in it based on the provided density, size and sex ratio.

Description

This function simulates an arena (or grid) with lobsters in it based on the provided density, size and sex ratio.

Usage

initialLobsterGrid(
  nrowgrids,
  ncolgrids,
  unitarea,
  initlambda,
  initD,
  lobsterSizeFile,
  lobsterSexDist
)

Arguments

nrowgrids

is a numeric value which defines the number of rows of the arena.

ncolgrids

is a numeric value which defines the number of columns of the arena.

unitarea

is the unit area used for estimating density of lobsters.

initlambda

is the density of lobsters at the beginning of simulation.

initD

is the dispersion index of lobsters on seabed at the beginning of the simulation.

lobsterSizeFile

is a csv file that contains the frequency of lobsters class size.

lobsterSexDist

is a list that contains the sex ratio of lobsters.

Value

Returns x and y coordinates of simulated lobsters at the beginning.


vpourfaraj/lobsterCatch documentation built on May 17, 2023, 1:37 p.m.