search:

Skip to contents

[Deprecated] The date_source() function has been deprecated without replacement as all functions using the source_pd argument are deprecated as well.

Create a date_source object as input for source_pd argument in {admiralonco} functions.

Usage

date_source(dataset_name, filter = NULL, date, set_values_to = 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 or an expression providing a date. A date or a datetime can be specified. An unquoted symbol or expression is expected.

set_values_to

Variables to be set

Value

An object of class date_source.

Examples


pd <- date_source(
  dataset_name = "adrs",
  date = ADT,
  filter = PARAMCD == "PD"
)
#> `date_source()` was deprecated in admiralonco 1.4.0.
#>  This message will turn into a warning {at the beginning of 2027}.
#>  See admiral's deprecation guidance:
#>   https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation