View source: R/unidirectional_edges.R
are_neighbours | R Documentation |
This function checks whether two H3 cells share an edge.
are_neighbours(origin = NULL, destination = NULL, simple = TRUE)
origin |
Character; 15-character cell index generated by H3. A vector of indexes can also be supplied. |
destination |
Character; 15-character cell index generated by H3. A vector of indexes can also be supplied. |
simple |
Logical; whether to return a vector of outputs or a data frame containing both inputs and outputs. |
Logical; TRUE
if neighbours.
The number of indexes supplied to origin and destination must be equal.
This function will always return false if the indexes are of different resolutions.
# Are the following cells neighbours? are_neighbours(origin = '86be8d12fffffff', destination = '86be8d127ffffff')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.