Skip to contents

Use run a 2D linear interpolation with interaction matrix to calculate system capacity.

Usage

interaction_matrix_sys_cap(
  MInt,
  sc.dose.df,
  adult_sys_cap,
  keep_main_effects = character(0)
)

Arguments

MInt

One item from object returned from StressorResponseWorkbook()

sc.dose.df

Data frame with columns HUC, Stressor, simulation, dose and sys.cap.

adult_sys_cap

Should the Joe Model be run only with variables identified for adult system capacity.

keep_main_effects

(optional) character vector of main-effect stressor names that must stay in the returned sc.dose.df even when this matrix has Main_Effect = "Included" (used by JoeModel_Run when the caller explicitly selected those stressors). Defaults to none.

Value

Updated sc.dose.df data frame with system capacity values

Details

Runs through an individual MInt_ worksheet object supplied from sr_wb_dat$MInt and calculates system capacity. interaction_matrix_sys_cap() should be run with apply on sr_wb_dat$MInt. Returns sc.dose.df with updated system capacity and filtered for variables.