| is_nb_pairwise | R Documentation |
Test if two H3 cells are neighbors.
is_nb_pairwise(x, y)
is_nb_sparse(x, y)
x |
an |
y |
and |
is_nb_pairwise() returns a logical vector wheraas is_nb_sparse() returns
a list with logical vector elements.
cells_ids <-c(
"85e22da7fffffff", "85e35ad3fffffff",
"85e22daffffffff", "85e35adbfffffff",
"85e22db7fffffff", "85e35e6bfffffff",
"85e22da3fffffff"
)
cells <- h3o::h3_from_strings(cells_ids)
is_nb_pairwise(cells, rev(cells))
is_nb_sparse(cells, cells)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.