Skip to contents

[Deprecated] The date_source() function has been deprecated in favor of event().

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, set_values_to = NULL)

Arguments

dataset_name

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

Default value

none

filter

An unquoted condition for filtering dataset.

Default value

NULL

date

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

Default value

none

set_values_to

Variables to be set

Default value

NULL

Value

An object of class date_source.