extend_source_datasets: Add By Groups to All Datasets if Necessary

Description Usage Arguments Details Value Author(s)

View source: R/derive_param_tte.R

Description

The function ensures that the by variables are contained in all source datasets.

Usage

1
extend_source_datasets(source_datasets, by_vars)

Arguments

source_datasets

Source datasets

A named list of datasets is expected. Each dataset must contain either all by variables or none of the by variables.

by_vars

By variables

Details

  1. The by groups are determined as the union of the by groups occuring in the source datasets.

  2. For all source datasets which do not contain the by variables the source dataset is replaced by the cartesian product of the source dataset and the by groups.

Value

The list of extended source datasets

Author(s)

Stefan Bundfuss


epijim/admiral documentation built on Feb. 13, 2022, 12:15 a.m.