| imed_filter | R Documentation |
Filter IMED with scientific guard metadata retained
imed_filter(
x,
matrix = NULL,
comparability_class = NULL,
mass_basis = NULL,
metric_type = NULL,
study_id = NULL,
include_holds = FALSE
)
x |
An 'imed_db' (HOLD flags are added automatically) or a measurement-level data frame. |
matrix |
Optional 'Matrix_Code' value(s) to keep. |
comparability_class |
Optional 'Comparability_Class' value(s) to keep. |
mass_basis |
Optional 'Mass_Basis' value(s) to keep. |
metric_type |
Optional 'Metric_Type' value(s) to keep. |
study_id |
Optional character vector of 'Study_ID' values used to restrict the records. |
include_holds |
If 'FALSE' (default), records flagged as scientific HOLDs are removed. |
A 'tibble' of the records that satisfy all supplied filters. If 'x' is an 'imed_db', the result is the measurement-level table with comparability metadata and two added columns: '.imed_hold' (logical) and '.imed_hold_reason' (character).
db <- imed_data(tables = c("MEASUREMENTS", "MEASUREMENT_COMPARABILITY"),
validate = FALSE)
nrow(imed_filter(db))
nrow(imed_filter(db, include_holds = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.