View source: R/detectStandard.R
detectStandard | R Documentation |
This function attempts to detect the clinical data standard used in a given R data frame.
detectStandard(data, domain = NULL, meta = NULL)
data |
A data frame in which to detect the data standard - required. |
domain |
the domain to evaluate - should match a value of |
meta |
the metadata containing the data standards. |
This function compares the columns in the provided "data"
with the required columns for a given data standard/domain combination. The function is designed to work with the SDTM and ADaM CDISC(https://www.cdisc.org/) standards for clinical trial data by default. Additional standards can be added by modifying the "meta"
data set included as part of this package.
A data frame describing the detected standard for each "text_key"
in the provided metadata. Columns are "domain"
, "text_key"
, "column"
and "standard"
.
detectStandard(data=safetyData::adam_adae, meta=safetyCharts::meta_aes) detectStandard(data=safetyData::adam_adlbc,meta=safetyCharts::meta_labs, domain="labs" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.