Based on the compressed PIT tag observations, and a parent-child table, determines the direction of movement leading to each detection.
addDirection(compress_obs = NULL, parent_child = NULL, direction = "u")
The result of `compress()`.
data frame with at least `parent` and `child` columns. Can be created with `buildParentChild()` function.
the direction of movement. Parent-child tables are generally built imagining parents as downstream from children. Assuming that's the case, should the paths be upstream (`u` or `upstream`), the default, or downstream (`d` or `downstream`)?
a tibble
addDirection()
#> Error in addDirection(): !is.null(compress_obs) is not TRUE