dataPrep: Final data prep step before assessments

View source: R/dataPrep.r

dataPrepR Documentation

Final data prep step before assessments

Description

Performs unit conversions & daily data aggregations. Also checks native vs. target activities and fractions, dissolved vs. total value checks, river/stream depth & flow checks, and generates value based data flags.

Usage

dataPrep(
  data,
  translation_wb,
  unit_sheetname = "unitConvTable",
  crit_wb,
  cf_formulas_sheetname,
  startRow_unit = 1,
  startRow_formulas = 1,
  split_agg_tds = TRUE
)

Arguments

data

A merged, translated, and numeric criteria assigned WQP results R-object. Target units for conversions are defined by units associated with assigned numeric critera.

translation_wb

Full path and filename for IR translation workbook (.xlsx).

unit_sheetname

Name of sheet in workbook holding IR unit conversion table. Defaults to "unitConvTable".

crit_wb

Full path and filename for workbook containing criteria.

cf_formulas_sheetname

Name of sheet in criterion workbook holding conversion factors and criterion formulas for criteria dependent on CFs.

startRow_unit

Row to start reading the unit conversion table excel sheet from (in case headers have been added). Defaults to 1.

startRow_formulas

Row to start reading the formulas table from (in case headers have been added). Defaults to 1.

split_agg_tds

Logical. If TRUE (default) split off TDS records w/ function assigned in AsmntAggFun into separate output. If FALSE, these records are passed through to conventionals output.

Value

A list of objects ready for assessments.


ut-ir-tools/irTools documentation built on Jan. 19, 2024, 6:55 p.m.