Skip to contents

A tagged-value constructor that marks a numeric threshold as a distance in kilometres. Use inside cl_geo_distance() for self-documenting thresholds.

Usage

km(n)

Arguments

n

A non-negative numeric value.

Value

A tagged numeric with class il_km.

Examples

il_spec() |>
  il_compare(c(lat, lon), cl_geo_distance(km(5), km(50)))
#> Linkage Specification
#>   Comparisons (1):
#>     lat, lon : geo_distance
#>   Blocking rules: (none)