R/get_dist.R
get_dist.Rd
get_dist
returns the distance of the predator when a
specific α or dα/dt value is reached.
get_dist(mod, dadt, alpha)
mod | list or data.frame. Object of class |
---|---|
dadt | numeric. dadt value to find distance exceeded at. |
alpha | numeric. alpha value to find distance exceeded at. |
numeric value of distance in whatever units were used to create the model.
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.