calc_size: calc_size

View source: R/calc_size.R

calc_sizeR Documentation

calc_size

Description

Calculate dimensions of fish individuals.

Usage

calc_size(
  pop_n,
  pop_mean_size,
  pop_sd_size,
  pop_linf,
  pop_a,
  pop_b,
  use_log = TRUE
)

Arguments

pop_n

Numeric with starting values for number of individuals.

pop_mean_size, pop_sd_size

Numeric with parameters for mean size and variance.

pop_linf, pop_a, pop_b

Numeric with parameters for weight calculation.

use_log

Logical if TRUE, random log distribution is used.

Details

Calculate size and weight of fish individuals based on length-weight relationships (Froese & Pauly 2019). The starting length is randomly drawn from a log-norm or uniform distribution.

If an uniform distribution is used, the minimum and maximum are based on 10 and 90

Value

list

References

Froese, R., Pauly, D., 2019. FishBase. World Wide Web electronic publication [WWW Document]. <www.fishbase.org>

The LENGTH-WEIGHT Table. <https://www.fishbase.org/manual/fishbasethe_length_weight_table.htm>

Examples

## Not run: 
calc_size(pop_n = 8, pop_mean_size = default_starting$pop_mean_size,
pop_sd_size = default_starting$pop_sd_size,
pop_linf = default_parameters$pop_linf, pop_a = default_parameters$pop_a,
pop_b = default_parameters$pop_b, use_log = TRUE)

## End(Not run)


Allgeier-Lab/arrR documentation built on Feb. 13, 2025, 7:44 a.m.