.find_dists_new | R Documentation |
Calculate (signed) distances between coordinates
.find_dists_new(
grid,
grid_new,
names = NULL,
names_new = NULL,
longlat = TRUE,
origin = 1L,
return_grid = FALSE,
lon_ref,
lat_ref
)
grid |
A matrix of 2D points, first column x/longitude, second column y/latitude. |
grid_new |
A matrix of 2D points, first column x/longitude, second column y/latitude. |
names |
Names of locations. |
names_new |
Names of new locations. |
longlat |
Logical, if TURE Great Circle (WGS84 ellipsoid) distance; if FALSE, Euclidean distance. |
origin |
Optional; used when |
return_grid |
Logical; used when |
lon_ref |
Reference longitude when computing the longitudinal distances.
Default is the mean of longitudes in |
lat_ref |
Reference latitude when computing the latitudinal distances.
Default is the mean of latitudes in |
List of signed distances between the new locations and the old grid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.