| a5_spherical_cap | R Documentation |
Returns, for each centre cell, the cells whose centres fall within a great-circle distance of its centre, as an a5_covering.
a5_spherical_cap(cell, radius, units = "m")
cell |
An a5_cell vector of centre cells. |
radius |
Non-negative numeric scalar, great-circle radius in |
units |
Character scalar, the length unit of a plain numeric
|
An a5_covering vector the same length as cell, at the
resolution of each centre cell. NA where cell is NA. Use
a5_uncompact() for the cells.
a5_grid_disk() for hop-based selection.
cell <- a5_lonlat_to_cell(-3.19, 55.95, resolution = 8)
cap <- a5_spherical_cap(cell, radius = 1000)
cap
a5_uncompact(cap)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.