View source: R/derive_extreme_event.R
event_joined | R Documentation |
event_joined
ObjectThe event_joined
object is used to define events as input for the
derive_extreme_event()
function. This object should be used if the event
does not depend on a single observation of the source dataset but on multiple
observations. For example, if the event needs to be confirmed by a second
observation of the source dataset.
The events are selected by calling filter_joined()
. See its documentation
for more details.
event_joined(
dataset_name = NULL,
condition,
order = NULL,
join_vars,
join_type,
first_cond = NULL,
set_values_to = NULL,
keep_source_vars = NULL,
description = NULL
)
dataset_name |
Dataset name of the dataset to be used as input for the
event. The name refers to the dataset specified for |
condition |
An unquoted condition for selecting the observations, which will contribute to the extreme event. Permitted Values: an unquoted condition |
order |
If specified, the specified variables or expressions are used to select the first observation. Permitted Values: list of expressions created by |
join_vars |
Variables to keep from joined dataset The variables needed from the other observations should be specified for
this parameter. The specified variables are added to the joined dataset
with suffix ".join". For example to select all observations with The |
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 Permitted Values: |
first_cond |
Condition for selecting range of data 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 subsequent observations, all observations are removed. |
set_values_to |
A named list returned by |
keep_source_vars |
Variables to keep from the source dataset The specified variables are kept for the selected observations. The
variables specified for Permitted Values: A list of expressions where each element is
a symbol or a tidyselect expression, e.g., |
description |
Description of the event The description does not affect the derivations where the event is used. It is intended for documentation only. |
An object of class event_joined
derive_extreme_event()
, event()
Source Objects:
basket_select()
,
censor_source()
,
date_source()
,
death_event
,
dthcaus_source()
,
event_source()
,
event()
,
query()
,
records_source()
,
tte_source()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.