fn_extract_basin: Extracting Basin Function

View source: R/cia_utils.R

fn_extract_basinR Documentation

Extracting Basin Function

Description

Trims data frame to include only segments upstream of end segment. It is inclusive of the end segment and will thus include the outlet and all upstream segments

Usage

fn_extract_basin(cia_data_frame, end_seg)

Arguments

cia_data_frame

Data frame of cumulative impact data. This must contain a column with the name "riverseg" that contains all river segments of interest. This function can ONLY find upstream segments if they are present in this riverseg column!

end_seg

Desired end river segment - river segment that is most downstream

Value

Trimmed cumulative impact data frame containing the outlet and all upstream segments


HARPgroup/hydro-tools documentation built on July 4, 2025, 11:05 a.m.