prey_fish_lengths: Generate Prey Fish

Description Usage Arguments Value Source Examples

View source: R/prey_survival_simulation.R

Description

creates a dataframe of prey fish at a given mean size

Usage

1
2
3
4
5
6
prey_fish_lengths(
  number_of_fish,
  mean_length = 14,
  sd_length = (1.7/14) * mean_length,
  precision = 1
)

Arguments

number_of_fish

number (pos integer) of prey fish desired

mean_length

mean length of fish in cm; default is 14

sd_length

std dev of fish length in cm; default is 1.7 and scales with mean

precision

integer for level of precision for length (e.g., to the 10's or 100's place)

Value

dataframe of fish, each with a unique number and length

Source

defaults based on Steel et al. 2020. "Applying the mean free-path length model to juvenile Chinook salmon migrating in the Sacramento River, California"

Examples

1
prey_fish_lengths(number_of_fish = 100)

mrguyperson/predpackplus documentation built on Dec. 21, 2021, 10:08 p.m.