| a5_cell_distance | R Documentation |
Computes the distance between the centroids of pairs of A5 cells using the specified method.
a5_cell_distance(
from,
to,
units = "m",
method = c("haversine", "geodesic", "rhumb")
)
from, to |
a5_cell vectors (recycled to common length). |
units |
Character scalar specifying the distance unit (default
|
method |
Distance calculation method. One of |
A units::units vector of distances.
a5_cell_to_lonlat() for cell centroids,
a5_cell_area() for cell areas.
a <- a5_lonlat_to_cell(-3.19, 55.95, resolution = 24)
b <- a5_lonlat_to_cell(-3.10, 55.90, resolution = 24)
a5_cell_distance(a, b)
a5_cell_distance(a, b, units = "km")
a5_cell_distance(a, b, method = "geodesic")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.