standardize_wqdata: Standardize Water Quality Data

View source: R/standardize-wqdata.R

standardize_wqdataR Documentation

Standardize Water Quality Data

Description

Standardizes a water quality data set using substitute_variables and substitute_units so that all remaining values have the recognised codes and variables in codes and the standard units. If column Code is present then a Variable column is created using lookup_variables. The standardize_wqdata function is called by clean_wqdata prior to cleaning.

Usage

standardize_wqdata(
  x,
  strict = TRUE,
  messages = getOption("wqbc.messages", default = TRUE)
)

Arguments

x

A data.frame to standardize.

strict

A flag indicating whether to require all words in a recognised variable name to be present in x (strict = TRUE) or only the first one (strict = FALSE) \lifecyclesoft-deprecated.

messages

A flag indicating whether to print messages.

See Also

clean_wqdata

Examples

standardize_wqdata(wqbc::dummy, messages = TRUE)

bcgov/wqbc documentation built on Feb. 11, 2023, 11:15 p.m.