Learn R Programming

h3r (version 0.1.2)

areNeighborCells: Are neighbor cells

Description

Returns whether or not the provided H3 cell indexes are neighbors

Usage

areNeighborCells(origin, destination)

Value

1 if the indexes are neighbors, 0 otherwise.

Arguments

origin

vector of origin H3 cell indexes

destination

vector of destination H3 cell indexes

Examples

Run this code

areNeighborCells(
  origin = c("85283473fffffff","85283473fffffff")
  , destination = c("85283471fffffff","85283477fffffff")
 )

Run the code above in your browser using DataLab