get_dist returns the distance of the predator when a specific α or dα/dt value is reached.

get_dist(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 distance exceeded at.

alpha

numeric. alpha value to find distance exceeded at.

Value

numeric value of distance 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.