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")

Arguments

compress_obs

The result of `compress()`.

parent_child

data frame with at least `parent` and `child` columns. Can be created with `buildParentChild()` function.

direction

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`)?

Value

a tibble

Author

Kevin See

Examples

addDirection()
#> Error in addDirection(): !is.null(compress_obs) is not TRUE