Get the centers of the given H3 indexes as sf object.

h3_to_geo_sf(h3_index)

Arguments

h3_index

character vector of H3 indexes

Examples

road_safety_greater_manchester[1:3, ] %>% geo_to_h3() %>% h3_to_geo_sf()
#> Simple feature collection with 3 features and 0 fields #> geometry type: POINT #> dimension: XY #> bbox: xmin: -2.466856 ymin: 53.61159 xmax: -2.193988 ymax: 53.6432 #> CRS: EPSG:4326 #> geometry #> 1 POINT (-2.466856 53.62876) #> 2 POINT (-2.444191 53.61159) #> 3 POINT (-2.193988 53.6432)