date_source {admiral}R Documentation

Create a date_source object

Description

Create a date_source object as input for derive_var_extreme_dt() and derive_var_extreme_dtm().

Usage

date_source(
  dataset_name,
  filter = NULL,
  date,
  date_imputation = deprecated(),
  time_imputation = deprecated(),
  preserve = deprecated(),
  traceability_vars = NULL
)

Arguments

dataset_name

The name of the dataset, i.e. a string, used to search for the date.

filter

An unquoted condition for filtering dataset.

date

A variable providing a date. A date or a datetime can be specified. An unquoted symbol is expected.

date_imputation

Deprecated, please use derive_vars_dtm() to convert DTC variables to datetime variables in the dataset.

time_imputation

Deprecated, please use derive_vars_dtm() to convert DTC variables to datetime variables in the dataset.

preserve

Deprecated, please use derive_vars_dtm() to convert DTC variables to datetime variables in the dataset.

traceability_vars

A named list returned by vars() defining the traceability variables, e.g. vars(LALVDOM = "AE", LALVSEQ = AESEQ, LALVVAR = "AESTDTC"). The values must be a symbol, a character string, a numeric, or NA.

Value

An object of class date_source.

Author(s)

Stefan Bundfuss

See Also

derive_var_extreme_dtm(), derive_var_extreme_dt()

Source Specifications: assert_db_requirements(), assert_terms(), assert_valid_queries(), censor_source(), death_event, derive_var_dthcaus(), event_source(), extend_source_datasets(), filter_date_sources(), format.sdg_select(), format.smq_select(), list_tte_source_objects(), params(), query(), sdg_select(), smq_select(), tte_source(), validate_query(), validate_sdg_select(), validate_smq_select()


[Package admiral version 0.8.4 Index]