R/unitHelper_%km^2%.R

Defines functions `%km^2%`

#' @rdname unitHelpers
#'
#' @usage x \%km^2\% .
#'
`%km^2%` <- function(x, . = NULL){
  units::set_units(x, "km^2")
}

Try the Rdistance package in your browser

Any scripts or data that you put into this service are public.

Rdistance documentation built on Jan. 10, 2026, 1:07 a.m.