calc_catchment_attributes_vect_rec: calc_catchment_attributes_vect_rec Aggregate attributes for...

Description Usage Arguments Value

Description

Recursive function to calculate the catchment attributes of each stream segment. It is called by calc_catchment_attributes_vect for each outlet and should not be called by the user.

Usage

1
calc_catchment_attributes_vect_rec(dt, id, stat_vect, attr_name_vect)

Arguments

dt

data.table of stream topology and attributes per segment.

id

integer; 'stream' of outlet segment to start the calculation from.

stat_vect

name or character vector giving the statistics to be calculated, must be one of: min, max, mean, percent.

attr_name_vect

name or character vector of column names for the attribute(s) to be calculated.

Value

One row data.table with the cumulative number of cells of the total catchment of each segment and the values for each attribute and changes the values in dt.


openSTARS documentation built on Feb. 4, 2022, 5:08 p.m.