calculate_final_status: Final Status of Prey Fish

Description Usage Arguments Value

View source: R/prey_survival_simulation.R

Description

Determines whether a fish survived the environment. All the outcomes (1 or 0) of encounters are summed. If the total is less than the number of transects (i.e., a death (that is, a 0) occurred in a cell), then the fish is considered to have died.

Usage

1
calculate_final_status(fish_frame, path_length)

Arguments

fish_frame

dataframe with prey fish, lengths, survival modifiers, and simulation results; see simulate_encounters()

path_length

number of cells traversed; determined by calculate_path_length()

Value

dataframe with a "final_status" column to indicate overall survival for each fish


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