Learn R Programming

h3r (version 0.1.2)

getIcosahedronFaces: Get Icosahedron Faces

Description

Find all icosahedron faces intersected by a given H3 index. Faces are represented as integers from 0-19, inclusive. The array is sparse, and empty (no intersection) array values are represented by -1.

Usage

getIcosahedronFaces(cell)

Value

list of vectors. Each list element corresponds to the input cell values. Each vector in a list element gives the faces intersected by the cell

Arguments

cell

vector of H3 cells

Examples

Run this code
getIcosahedronFaces(cell = c("8cbe63562a54bff","8cbe635631103ff"))

getIcosahedronFaces(cell = cellToParent(c("8cbe63562a54bff" ,"8cbe635631103ff"), c(7L, 7L)))

Run the code above in your browser using DataLab