Flowline length helper function: Extract NHD flowlines that correspond to groups and calculate length

suitability_measure_flowline_lengths(group_polygons, .group_var = comid)

Arguments

group_polygons

An sf polygon feature collection with one polygon for each analysis reach. These may have been delineated previously by splitting the hydraulic model domain into subsections.

.group_var

The unquoted name of the attribute used to identify groups in the group_polygons layer. Defaults to comid

Value

A tbl_df data frame, one row per group (comid), containing the calculated length of the associated NHDPlusV2 flowline (joined by comid) clipped to the group polygon extent.