assign_binIDs: assign_binIDs Recursive function to assign binary id to...

View source: R/export_ssn.R View source: R/calc_binary.R

assign_binIDsR Documentation

assign_binIDs Recursive function to assign binary id to stream segments

Description

Should be run for all outlets in the network ( = most downstream segments) and fills the binID for all segments

This function is run for all outlets in the network ( = most downstream segments) and fills the binID for all segments. It is called by calc_binary in export_ssn and should not be called by the user.

Usage

assign_binIDs(dt, id, binID, lastbit)

assign_binIDs(dt, id, binID, lastbit)

Arguments

id:

stream segment

binID:

binary ID

lastbit:

last char to be added (0 or 1)


MiKatt/openSTARS documentation built on June 17, 2022, 5:08 a.m.