list_all_downstream: Identify all the subcatchments downstream of a list of...

Description Usage Arguments Value Note Examples

View source: R/list_all_downstream.R

Description

Identify all the subcatchments downstream of a list of specified catchments

Usage

1
list_all_downstream(hierarchy, catchnames)

Arguments

hierarchy

a dataframe containing catchment id and next downstream (nextds) id fields

catchnames

a vector of catchment ids for which a vector of next downstream catchment ids will be returned.

Value

a vector of next downstream catchment ids for each catchment in catchnames

Note

Function depends on the next downstream field in a stream network 'hierarchy' table (dataframe).

Examples

1
2
3
4
5
6
#'#'data(mwcats)

#find all sites downstream of the first five sites in the catchment list
data(mwcats)

list_all_downstream(hierarchy = mwcats, catchname = mwcats$site[1:5])

nickbond/catchstats documentation built on Nov. 22, 2019, 3:41 a.m.