updateUnitConvTable: Update IR unit conversion table

View source: R/updateUnitConvTable.r

updateUnitConvTableR Documentation

Update IR unit conversion table

Description

Updates IR unit conversion table based on combinations of native and target units as defined by numeric criteria tables.

Usage

updateUnitConvTable(
  data,
  translation_wb,
  sheetname = "unitConvTable",
  startRow = 1,
  startCol = 1
)

Arguments

data

A merged WQP results-activity R-object that has had detection limit values filled (passed through fillMaskedValues function) and numeric criteria assigned (passed through assignCriteria function).

translation_wb

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

sheetname

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

startRow

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

startCol

Column to start reading the unit conversion excel sheet from (in case columns have been added). Defaults to 1.

Value

Updates unit conversion table in translation_wb with any new combinations of native and target units.


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