Skip to contents

A tagged-value constructor that marks a numeric threshold as a number of years. Use inside cl_date_diff() for self-documenting thresholds.

Usage

years(n)

Arguments

n

A non-negative numeric value.

Value

A tagged numeric with class il_years.

Examples

il_spec() |>
  il_compare(dob, cl_date_diff(years(1)))
#> Linkage Specification
#>   Comparisons (1):
#>     dob : date_diff
#>   Blocking rules: (none)