Description Usage Arguments Value Note
View source: R/prey_survival_simulation.R
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.
1 | simulate_encounters(combined_frame)
|
combined_frame |
dataframe of prey fish, their lengths, survival boosts, and paths; see () |
dataframe with all prior fish data plus columns indicating whether an encounter occurred and whether the fish survived
this function can be parallelized; e.g., by setting plan(multisession)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.