h3_to_geo: Get the [lat, lon] center of a given hexagon

Description Usage Arguments Value Examples

View source: R/h3_h3-to-geo.R

Description

Get the [lat, lon] center of a given hexagon

Usage

1
h3_to_geo(h3_index)

Arguments

h3_index

character vector representing H3 indexes

Value

numeric vector: [lat, lng]; matrix with [lat, lng] pairs if multiple indexes are supplied

Examples

1
2
3
4
5
6
mtx_geo <- road_safety_greater_manchester[1:5, ] %>%
  geo_to_h3() %>%
  h3_to_geo()

mtx_geo %>%
  geo_to_sf()

crazycapivara/h3forr documentation built on Dec. 6, 2020, 5:21 a.m.