get_joined_sub_data {admiral} | R Documentation |
Join Data for "joined" functions
Description
The helper function joins the data for the "joined" functions. All .join
variables are included in the output dataset. It is called by
get_joined_data()
to process each by group separately. This reduces the
memory consumption.
Usage
get_joined_sub_data(
dataset,
dataset_add,
by_vars,
tmp_obs_nr_var,
tmp_obs_nr_left,
join_type,
first_cond_upper,
first_cond_lower,
filter_join
)
Arguments
dataset |
Input dataset The variables specified by the
|
dataset_add |
Additional dataset The variables specified by the
|
by_vars |
Grouping variables The two datasets are joined by the specified variables. Variables can be renamed by naming the element, i.e.
|
tmp_obs_nr_var |
Temporary observation number The specified variable is added to the input dataset (
|
tmp_obs_nr_left |
Temporary observation number for The specified variable has to be in the input dataset (
|
join_type |
Observations to keep after joining The argument determines which of the joined observations are kept with
respect to the original observation. For example, if For example for confirmed response or BOR in the oncology setting or
confirmed deterioration in questionnaires the confirmatory assessment must
be after the assessment. Thus Whereas, sometimes you might allow for confirmatory observations to occur
prior to the observation. For example, to identify AEs occurring on or
after seven days before a COVID AE. Thus
|
first_cond_upper |
Condition for selecting range of data (after) If this argument is specified, the other observations are restricted up to the first observation where the specified condition is fulfilled. If the condition is not fulfilled for any of the other observations, no observations are considered, i.e., the observation is not flagged. This argument should be specified if
|
first_cond_lower |
Condition for selecting range of data (before) If this argument is specified, the other observations are restricted from the first observation before the current observation where the specified condition is fulfilled up to the current observation. If the condition is not fulfilled for any of the other observations, no observations are considered, i.e., the observation is not flagged. This argument should be specified if
|
filter_join |
Filter for the joined dataset The specified condition is applied to the joined dataset. Therefore
variables from both datasets Variables created by The condition can include summary functions like
|
Details
The input dataset (
dataset
) and the additional dataset (dataset_add
) are left joined by the grouping variables (by_vars
). If no grouping variables are specified, a full join is performed.The joined dataset is restricted as specified by arguments
join_type
,first_cond_upper
, andfirst_cond_lower
. See argument descriptions for details.The joined dataset is restricted by the
filter_join
condition.