Recursive function to get the stream from one segment upstream. This function is used internally and is not intended to be called by the user.
get_streams_edges_in_catchment(dt, str_id)
data.table containing the attributes of the stream segments
integer giving the stream_id ('stream') of the starting edge
vector of stream values of all upstream edges and the calling one.