assignCriteria: Assign numeric criteria to WQP data

View source: R/assignCriteria.r

assignCriteriaR Documentation

Assign numeric criteria to WQP data

Description

Assigns general & site-specific numeric WQ criteria to WQP data. Does not calculate criteria w/ correction factors - this occurrs in dataPrep.

Usage

assignCriteria(
  data,
  crit_wb,
  crit_sheetname,
  ss_sheetname,
  crit_startRow = 1,
  ss_startRow = 1,
  rm_nocrit = TRUE,
  print = TRUE
)

Arguments

data

A merged, parameter translated, spatially referenced WQP result object. Must be post parameter translation step.

crit_wb

Full path and filename for workbook containing criteria.

crit_sheetname

Name of sheet in workbook holding criteria to be assigned.

ss_sheetname

Name of sheet in workbook holding site-specific criteria to be assigned. Should typically contain parameters corresponding to those in criteria table.

crit_startRow

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

ss_startRow

Row to start reading site specific criteria table excel sheet from (in case headers have been added). Defaults to 1.

rm_nocrit

Logical. If TRUE (default), remove records w/o numeric criteria before returning. If FALSE, function will pass through all records with flattened uses & any matching criteria - useful for passing through non-assessed parameters for other analyses.

Value

A flattened & expanded sample x use x parameter x criterion data.frame.


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