fn_ALL.upstream | R Documentation |
Returns a vector of the segments upstream of riv.seg based on the list in AllSegList
fn_ALL.upstream(AllSegList, riv.seg = NULL, getAllSegmentsOnly = TRUE)
AllSegList |
Data frame that must contain riverseg and all river segments in state. All columns are maintained in final This function can only find segments that are in this list so the user should use a comprehensive list of segments as demonstrated in the hydrotools package in cia_utils.R |
riv.seg |
If user wishes to only return certain segments, they can specify these in riv.seg to get a data frame showing that segment, other data in AllSegList, and all upstream segments. May be left as NULL to instead find upstream segments of all unique segments in AllSegList |
getAllSegmentsOnly |
If the user only wishes to get the ids of upstream segments and the outlet i.e. this is inclusive of riv.seg. This may only be used if riv.seg is specified. Defaults to TRUE. |
Find Upstream Segments: A basic function that finds the segments upstream of a given segment(s). riv.seg may be a character vector of segments. and AllSegList must be a dataframe. This function returns a vector of upstream segments
string next upstream segment ID
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.