distance: Calculate Distance

View source: R/distance.R

distanceR Documentation

Calculate Distance

Description

Functions to retrieve or calculate distance.

Usage

distance(x, ...)

## Default S3 method:
distance(
  x,
  y,
  x0 = NULL,
  y0 = NULL,
  coordinate.units = "latlon",
  distance.units = "km",
  pairwise = TRUE,
  method = "utm",
  ...
)

Arguments

x

Horizontal coordinates.

y

Vertical coordinates.

x0

Second set of horizontal coordinates.

y0

Second set of vertical coordinates.

coordinate.units

Units of the input coordinates.

distance.units

Units distances to be returned.

pairwise

Logical value specifying whether to calculate all possible pairwise combinations of coordinates.

method

Method used to calculate distance.

Methods (by class)

  • distance(default): Default distance method.

See Also

deg2km


TobieSurette/gulf.spatial documentation built on Sept. 26, 2024, 7:41 p.m.