detectStandard: Detect the data standard used for a data set

View source: R/detectStandard.R

detectStandardR Documentation

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 = NULL)

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.

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.

Value

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

Examples

detectStandard(data=safetyData::adam_adae, meta=safetyCharts::meta_aes) 
detectStandard(data=safetyData::adam_adlbc,meta=safetyCharts::meta_labs, domain="labs" ) 


safetyGraphics documentation built on Dec. 28, 2022, 1:58 a.m.