calc_catchment_attributes_vect_rec | R Documentation |
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.
calc_catchment_attributes_vect_rec(dt, id, stat_vect, attr_name_vect)
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.