Skip to contents

Produces local IJ coordinates for an H3 index anchored by an origin.

Usage

cellToLocalIj(origin, cell)

Arguments

origin

vector of anchor cell

cell

vector of cell you input

Value

(i, j) coordinates

Examples


cellToLocalIj(
  origin = c("85283473fffffff","85283473fffffff")
  , cell = c("8528342bfffffff","85283477fffffff")
 )
#> $i
#> [1] 25 26
#> 
#> $j
#> [1] 13 14
#>