addDirection: Add Direction

View source: R/addDirection.R

addDirectionR Documentation

Add Direction

Description

Based on the compressed PIT tag observations, and a parent-child table, determines the direction of movement leading to each detection.

Usage

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(s)

Kevin See

Examples

addDirection()

KevinSee/PITcleanr documentation built on Feb. 27, 2024, 11:03 p.m.