Applies range-based quality control to a `metamet` object by setting
out-of-range values to `NA` and recording QC codes in the `qc` column.
Accepts both wide and long format; always returns long format.
Arguments
- mm0
A `metamet` object (wide or long format).
Value
A long-format `metamet` object with updated `value`, `qc`, and
`validator` columns.
Details
The function performs the following steps:
Reshapes to long format if necessary.
Sets values outside the min/max range specified in `dt_meta` to `NA`.
Sets `qc = 1` for missing or invalid values, `qc = 0` for valid values.
Sets `validator = "auto"` for flagged rows.