- dataset_name
The name of the dataset, i.e. a string, used to search for
the death cause.
- filter
An expression used for filtering dataset
.
- date
A date or datetime variable or an expression to be used for
sorting dataset
.
- order
Sort order
Additional variables/expressions to be used for sorting the dataset
. The
dataset is ordered by date
and order
. Can be used to avoid duplicate
record warning.
Permitted Values: list of expressions created by exprs()
, e.g.,
exprs(ADT, desc(AVAL))
or NULL
- mode
One of "first"
or "last"
.
Either the "first"
or "last"
observation is preserved from the dataset
which is ordered by date
.
- dthcaus
A variable name, an expression, or a string literal
If a variable name is specified, e.g., AEDECOD
, it is the variable in the
source dataset to be used to assign values to DTHCAUS
; if an expression,
e.g., str_to_upper(AEDECOD)
, it is evaluated in the source dataset and
the results is assigned to DTHCAUS
; if a string literal, e.g. "Adverse Event"
, it is the fixed value to be assigned to DTHCAUS
.
- set_values_to
Variables to be set to trace the source dataset