simulate_encounters: Encounter Simulations

Description Usage Arguments Value Note

View source: R/prey_survival_simulation.R

Description

Simulates encounters for each fish in each cell. First checks whether an encounter occurs based on fish length. If no encounter occurs, the fish survives. If an encounter occurs, them a survival check occurs based on the abilities of the predator.

Usage

1
simulate_encounters(combined_frame)

Arguments

combined_frame

dataframe of prey fish, their lengths, survival boosts, and paths; see ()

Value

dataframe with all prior fish data plus columns indicating whether an encounter occurred and whether the fish survived

Note

this function can be parallelized; e.g., by setting plan(multisession)


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