Split Flow-to-Suitable-Area Curve at Flow Threshold

flow_threshold_split_apply(
  data,
  flow_threshold = NULL,
  .flow_threshold_var = NULL,
  .id_var = comid,
  .flow_var = flow_cfs,
  .habitat_var = wua_per_lf,
  .group_var = NULL
)

Arguments

data

A data.frame or tbl_df containing flow-to-suitable area curves (one row per flow per site, columns for flow and suitable area)

flow_threshold

A numeric value for a flow threshold defining the instream-floodplain split

.flow_threshold_var,

An unquoted column name for the flow threshold column in the data frame. Ignored if flow_threshold is provided.

.id_var

Unquoted column name for the variable id, defaults to comid

.flow_var

Unquoted column name for the flow in cfs, defaults to flow_cfs

.habitat_var

Unquoted column name for the suitable area, defaults to wua_per_lf

.group_var

Unquoted column name for an optional grouping variable

Value

A new version of the data.frame or tbl_df containing additional columns for the instream and floodplain (below or above threshold) split