Skip to contents

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

Usage

days(n)

Arguments

n

A non-negative numeric value.

Value

A tagged numeric with class il_days.

Examples

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