Description Usage Arguments Value Examples
View source: R/h3_algorithms2.R
Get the children/descendents of a given hexagon at a particular resolution
1  | h3_to_children(h3_index, res = NULL)
 | 
h3_index | 
 character vector representing H3 indexes  | 
res | 
 resolution; if   | 
character vector of H3 indexes; list of charactor vectors if multiple indexes are supplied
1 2 3 4 5 6 7 8 9 10  | coords <- c(37.36156, -122.05532)
h3_index <- geo_to_h3(coords)
h3_to_children(h3_index) %>%
  h3_to_geo_boundary() %>%
  geo_boundary_to_sf() %>% plot()
h3_to_geo_boundary(h3_index) %>%
  geo_boundary_to_sf() %>% plot(add = TRUE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.