clinical.derive: Derive analysis variables from clinical data

Description Usage Arguments Details Author(s) Examples

View source: R/clinical.R

Description

Provides a convenience function

Usage

1
clinical.derive(datalist, derivations, verbose = TRUE, only)

Arguments

datalist

A list of data frames of clinical data

derivations

A data frame of derivation rules

verbose

Whether to print progress messages

only

Character vector of targets to derive

Details

Read the code or see the examples.

The derivations argument must be a dataframe with the following columns (with the following information in each row): “targets” (a name [or space delimited names] for the derived variable[s]); “types” (the type [or space delimited types] for the derived variable[s]); “deps” (a string with space delimited names of clinical datasets the derivation depends on); “data” (a string with an R language statement to extract a data subset); “fun” (a string with an R language statement of the derivation).

Author(s)

Toby Johnson Toby.x.Johnson@gsk.com

Examples

1
2
3
4
5
6
7
## Not run: 
clindata <- clinical.import("path/to/clinical/export/")
data(derivations.standard)
gxvars <- clinical.derive(clindata, derivations.standard)
summary(gxvars)

## End(Not run)

tobyjohnson/gtx documentation built on Aug. 30, 2019, 8:07 p.m.