chevron_tlg
class
chevron_tlg-class.Rd
The chevron_tlg
class associates a preprocess
function, a main tlg
function and AdAM
tables names and
optionally a postprocess
function.
Usage
chevron_tlg(
main = function(adam_db, ...) adam_db,
preprocess = function(adam_db, ...) adam_db,
postprocess = report_null,
adam_datasets = NA_character_
)
Arguments
- main
(
function
) returning atlg
. Typically one of the_main
function ofchevron
.- preprocess
(
function
) returning a pre-processeddm
object amenable totlg
creation. Typically one of the_pre
function ofchevron
.- postprocess
(
function
) returning a post-processedtlg
.- adam_datasets
(
character
) representing the name of the table from anAdAM
dataset required fortlg
creation.
Slots
main
(
function
) returning atlg
. Typically one of the*_main
function fromchevron
.preprocess
(
function
) returning a pre-processeddm
object amenable totlg
creation. Typically one of the*_pre
function fromchevron
.postprocess
(
function
) returning a post-processedtlg
.adam_datasets
(
character
) representing the name of the tables from anAdAM
dataset required fortlg
creation.
Note
To ensure the correct execution of the workflow additional validation criteria are:
the first argument of the
main
function must beadam_db
, the inputdm
object to pre-process.the first argument of the
preprocess
function must beadam_db
, the inputdm
object to createtlg
output.the first argument of the
postprocess
function must betlg
, the inputTableTree
object to post-process.
Examples
x <- chevron_tlg(aet01_1_main, aet01_1_pre, adam_datasets = c("adsl", "adae"))