get_time returns the time to reach the prey by the predator when a specific α or dα/dt value is reached.

get_time(mod, dadt, alpha)

Arguments

mod

list or data.frame. Object of class attack_model, attack_model_whale, or data.frame exported from either of those functions

dadt

numeric. dadt value to find time exceeded at.

alpha

numeric. alpha value to find time exceeded at.

Value

numeric value of time in whatever units were used to create the model.

Details

Input can be an object of class attack_model, attack_model_whale, or data.frame exported from either of those functions. α and dα/dt columns are identified automatically. Only one of the dadt or alpha inputs should be entered.