walk: walk

Description Usage Arguments Value

View source: R/utils.R

Description

Traverse from top row to bottom row of matrix. If distance 'dist' lies on matrix 'mat', return interpolated pt and remainder distance of zero. If 'dist' is farther than the end of 'mat', return end of mat as pt and remainder distance.

Usage

1
walk(mat, dist)

Arguments

mat

is a stream path

dist

is the length to travel down the stream path

Value

a list c(new position, distance remaining, orientation of travel)


crumplecup/riparian documentation built on April 14, 2021, 1:43 p.m.