distance | R Documentation |
Functions to retrieve or calculate distance.
distance(x, ...)
## Default S3 method:
distance(
x,
y,
x0 = NULL,
y0 = NULL,
coordinate.units = "latlon",
distance.units = "km",
pairwise = TRUE,
method = "utm",
...
)
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. |
distance(default)
: Default distance method.
deg2km
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.