fn_upstream | R Documentation |
Returns a vector of the segments immediately upstream of riv.seg based on the list in AllSegList
fn_upstream(
riv.seg,
AllSegList,
allSegToSeg = NULL,
allSegThisSeg = NULL,
allSegOldshed = NULL
)
riv.seg |
string ID of segment from which to find upstream segments |
AllSegList |
AllSegList vector of all model segments. These should be river segments. This function can only find segments that are in this vector so the user should use a comprehensive list of segments as demonstrated in the hydrotools package in cia_utils.R |
allSegToSeg |
Primarily for use when fn_upstream is called repeatedly. By providing the vector of segments that each segment in AllSegList flow into, we can improve the performance of fn_upstream |
allSegThisSeg |
Primarily for use when fn_upstream is called repeatedly. By providing the vector of segments IDs for each segment in AllSegList, we can improve the performance of fn_upstream |
allSegOldshed |
Primarily for use when fn_upstream is called repeatedly. By providing the vector of segments in AllSegList flow that have the old watershed notation (e.g. JL8_2090_8021_Big_Cerry), we can improve the performance of fn_upstream |
string next upstream segment ID
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.