Apply Duration HSI to Flow-to-Suitable-Area Curve

duration_apply_dhsi_to_fsa_curve(
  fsa,
  drc,
  fsa_q = q,
  fsa_wua = wua,
  drc_q = q,
  drc_dhsi = dhsi
)

Arguments

fsa

A data.frame or tbl_df containing a flow-to-suitable-area curve

drc

A data.frame or tbl_df containing a flow-to-duration-HSI curve

fsa_q

The unquoted name of the flow column in fsa (defaults to q)

fsa_wua

The unquoted name of the suitable area column in fsa (defaults to wua)

drc_q

The unquoted name of the flow column in drc (defaults to q)

drc_dhsi

The unquoted name of the duration suitability factor column in drc (defaults to dhsi)

Value

A tbl_df data frame with one row per flow (q) containing columns for the original suitable area (wua) and the new duration-weighted suitable area (durwua) along with interim calculation columns.