apply_prm | R Documentation |
Clamps values to PRM ranges by variable family (e.g., ^SWC($|_)
, ^P($|_)
).
Columns with "QC" in their names are skipped by default. Out-of-range values
are set to NA
. No columns are removed.
apply_prm(.data, include = NULL, skip_qc = TRUE, note = TRUE, summarize = TRUE)
.data |
A data.frame or tibble. |
include |
Optional character vector of base family names to apply (e.g., "SWC", "P").
If |
skip_qc |
Logical; when TRUE, skip columns that look like flags:
names ending/containing |
note |
Logical; print a per-column summary with expected units, PRM range, and counts. |
summarize |
Logical; if |
If summarize = TRUE
, a list with data
and summary
; else a data.frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.