View source: R/derive_merged.R
| derive_var_merged_summary | R Documentation |
The
derive_var_merged_summary()
function has been deprecated in favor of derive_vars_merged_summary().
derive_var_merged_summary(
dataset,
dataset_add,
by_vars,
new_vars = NULL,
filter_add = NULL,
missing_values = NULL
)
dataset |
Input dataset The variables specified by the |
dataset_add |
Additional dataset The variables specified by the |
by_vars |
Grouping variables The expressions on the left hand sides of |
new_vars |
New variables to add The specified variables are added to the input dataset. A named list of expressions is expected:
For example: new_vars = exprs(
DOSESUM = sum(AVAL),
DOSEMEAN = mean(AVAL)
)
|
filter_add |
Filter for additional dataset ( Only observations fulfilling the specified condition are taken into account for summarizing. If the argument is not specified, all observations are considered. |
missing_values |
Values for non-matching observations For observations of the input dataset ( |
The records from the additional dataset (dataset_add) are restricted
to those matching the filter_add condition.
The new variables (new_vars) are created for each by group (by_vars)
in the additional dataset (dataset_add) by calling summarize(). I.e.,
all observations of a by group are summarized to a single observation.
The new variables are merged to the input dataset. For observations
without a matching observation in the additional dataset the new variables
are set to NA. Observations in the additional dataset which have no
matching observation in the input dataset are ignored.
The output dataset contains all observations and variables of the
input dataset and additionally the variables specified for new_vars.
derive_summary_records(), get_summary_records()
Other deprecated:
call_user_fun(),
date_source(),
derive_param_extreme_record(),
derive_var_dthcaus(),
derive_var_extreme_dt(),
derive_var_extreme_dtm(),
dthcaus_source(),
get_summary_records()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.