Learn R Programming

safetyGraphics (version 0.7.3)

detectStandard: Detect the data standard used for a data set

Description

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

Usage

detectStandard(data, domain = "labs")

Arguments

data

A data frame in which to detect the data standard

domain

The data domain for the data set provided. Default: "labs".

Value

A list containing the matching "standard" ("ADaM", "SDTM" or "None") and a list of "details" describing each standard considered. #'

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. Currently, only "labs" is the only domain supported.

Examples

Run this code
# NOT RUN {
detectStandard(adlbc)[["standard"]] #AdAM
detectStandard(iris)[["standard"]] #none

# }
# NOT RUN {
  detectStandard(adlbc,domain="AE") #throws error. AE domain not supported in this release. 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab