k_ring_distances: Get all hexagons in a k-ring around a given center ordered by...

View source: R/h3_traversal.R

k_ring_distancesR Documentation

Get all hexagons in a k-ring around a given center ordered by distance from the origin.

Description

Get all hexagons in a k-ring around a given center ordered by distance from the origin.

Usage

k_ring_distances(h3_index, radius = 1)

Arguments

h3_index

character vector of H3 indexes

radius

number of rings around the given center

Value

tibble with 2 variables: h3_index and distance

Note

The order of the hexagons within each ring is undefined.


crazycapivara/h3-r documentation built on Aug. 10, 2022, 1:17 p.m.