Learn R Programming

safetyGraphics (version 2.0.0)

detectStandard: Detect the data standard used for a data set

Description

This function attempts to detect the clinical data standard used in a given R data frame.

Usage

detectStandard(data, domain = NULL, meta = safetyGraphics::meta)

Arguments

data

A data frame in which to detect the data standard - required.

domain

the domain to evaluate - should match a value of meta$domain. Uses the first value in meta$domain if no value is provided.

meta

the metadata containing the data standards. - default = safetyGraphics::meta

Value

A data frame describing the detected standard for each "text_key" in the provided metadata. Columns are "domain", "text_key", "column" and "standard".

Details

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.

Examples

Run this code
# NOT RUN {
detectStandard(data=safetyData::adam_adae)  #aes domain evaluated by default
detectStandard(data=safetyData::adam_adlbc,domain="labs" ) 

# }

Run the code above in your browser using DataLab