View source: R/setup_fishpop.R
setup_fishpop | R Documentation |
Setup fish population for model run.
setup_fishpop(
seafloor,
starting_values,
parameters,
use_log = TRUE,
verbose = TRUE
)
seafloor |
Data.frame object. |
starting_values |
List with all starting value parameters. |
parameters |
List with all model parameters. |
use_log |
Logical if TRUE, random log distribution is used. |
verbose |
Logical if TRUE, information is printed. |
Function to setup the fish population. If use_log = TRUE
the size distribution
of the fish population follows a log-norm distribution. For more information, see
calc_size
(internal function). To create no fish, set starting_values$pop_n = 0
.
data.frame
reef <- matrix(data = c(-1, 0, 0, 1, 1, 0, 0, -1, 0, 0),
ncol = 2, byrow = TRUE)
seafloor <- setup_seafloor(dimensions = c(50, 50), grain = 1,
reef = reef, starting_values = default_starting)
fishpop <- setup_fishpop(seafloor = seafloor,
starting_values = default_starting, parameters = default_parameters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.