Learn R Programming

h3r (version 0.1.2)

gridDistance: Grid Distance

Description

Provides the distance in grid cells between the two indexes.

Usage

gridDistance(origin, destination)

Value

the grid distance between the two H3 cells

Arguments

origin

vector of origin H3 cell indexes

destination

vector of destination H3 cell indexes

Examples

Run this code

gridDistance(origin = c("85283473fffffff","85283473fffffff"),
             destination = c("8528342bfffffff","85283477fffffff"))

Run the code above in your browser using DataLab