hipchain: hipchain

Description Usage Arguments Value

View source: R/spat.R

Description

Given a matrix representation of the channel 'chan' with cols (x,y) and rows running upstream to downstream, pulls all pts within 'inc' of 'pt' along 'chan'. If 'us' is true, then the last row of the subset matrix is 'inc' units upstream If 'us' is false, then the first row of the subset is 'inc' units downstream The function recursively calls itself using the new point position and distance remaining in place of 'pt' and 'dist' until having fully traveled the original 'dist' by increments of 'inc'.

Usage

1
hipchain(pt, dist, inc = 10, chan = flowline, us = T, filter = 4000)

Arguments

pt

is a coordinate pair

dist

is a numeric hipchain distance (meters along channel)

inc

is a numeric step increment

chan

is a matrix of coords delineating channel from downstream to upstream

us

is a boolean indicating up or downstream travel

filter

is a numeric buffer distance defining off-channel pts

Value

coordinate position 'dist' along 'chan' from 'pt', and distance remaining in list


crumplecup/muddier documentation built on Aug. 18, 2021, 11:02 a.m.